reactjs Questions

2

I got error below than I inspect the error found - AWS$6.STS.prototype Uncaught TypeError: Cannot read properties of undefined (reading 'prototype') It build successfully. And I can upload file to ...
Charpoy asked 20/11, 2022 at 10:9

5

Solved

I wanna send an image with form data to the nest js server with RTK query but the file didn't send. the code are: uploadImage: builder.mutation<any, any>({ query: (imageFile) => { var b...
Puke asked 26/5, 2023 at 12:12

3

I've successfully tested one isolated server component by using an async it and awaiting the output of a call to the component as a plain function to pass into render: it('renders the user data wh...

3

Solved

I want when the user scrolls from the bottom to the top of a div to load more items into that div to the top part of the div and I want to maintain the scroll position (or rather make sure the top ...
Terrorize asked 24/6, 2020 at 16:39

4

I've a formik form in a component that I'd want to reuse. In order to do that I need to listen to the form values changes in order to call two functions, getFormValues and getFormErrors, that will ...
Dissident asked 23/1, 2022 at 19:28

3

Solved

I have a simple login form, but validation rule with type: 'number' for input item tn doesn't work. Even if I enter a number, I get 'tn' is not a valid number' in console. import React from 'react...
Ocotillo asked 14/12, 2020 at 16:45

6

I am using react native expo and trying to build project in android studio getting this error FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went w...
Tufa asked 13/11, 2022 at 11:45

2

I'm building an Ionic React (using Ionic 6 and Capacitor) application. I have two pages, Home and Profile. I want to navigate between the home page and profile page, it is working but there is no p...
Purlieu asked 12/2, 2022 at 17:40

4

Solved

I have create an app with react.js. I wanted to go into production. I did npm run build serve -s build I go on localhost:5000 The welcome page works very well, but when i go on localhost:50...
Arbour asked 25/4, 2019 at 11:31

10

Solved

Trying to deploy for the first time to firebase , I looked in alot of guides on youtube and stackoverflow did the same as they did but keep getting blank page after deploy the app. This is my proc...
Mapel asked 17/2, 2020 at 20:6

3

Solved

I'm trying to import the svg from the public folder. How can I do that using import? I've tried: import Avatar_1 from './public/avatar_1.svg'; but I'm still getting "Module not found: Can't re...
Mccollum asked 29/11, 2019 at 12:48

3

Solved

What would be the ideal way to manage a video player using Redux, primarily in terms of dispatching actions to play/pause a video? I'm working on building a video player in a React application, an...
Aguascalientes asked 9/3, 2016 at 18:6

4

Solved

I want to remove data-testid from the production build, so these attributes can't be found in the prod build Particularly in this case, I need something that works with .tsx files I know how to rem...
Ullund asked 25/2, 2023 at 2:27

5

Here is how I am using MockedProvider. How can I mock refetch in mocks array? const mocks = [{ request: { query: GET_USERS_BY_FACILITY, variables: { facility: 300 } }, result: { data: { G...
Acicula asked 21/11, 2019 at 18:13

3

I'm a newbie on test driven development, and I came across a section regarding testing/mocking a fetch api. But I'm struggling to write my own test. I built a simple weather app just to test/mock t...
Pressing asked 4/9, 2022 at 5:45

3

Solved

I'm a newbie in React-Native and I have an issue with fonts adding, I'm trying to load a custom font from .otf file, but I have an error: fontFamily "Pixel-Musketeer" is not a system font...
Vanatta asked 16/12, 2022 at 7:36

5

I want to trigger the submit button outside the antd form Here is my code <Form {...layout} name="basic" initialValues={{ remember: true, }} onFinish={onFinish} onFinishFailed={...
Gawky asked 12/5, 2020 at 7:15

5

Solved

At some point, my VS Code has started to import react hooks from react/cjs/react.production.min, not from react. This annoys me because it only causes errors when I'm developing on my localhost:300...
Gerta asked 15/3, 2022 at 2:19

1

I am using in my NextJS application Next-Auth for authentication to call a separate BE that gives me an access and refresh token. What I am trying to do with that tokens is to store them as cookies...
Rigsby asked 29/11, 2023 at 15:31

4

Solved

I have a Bigint column in my Table in SQL server as a Primary Key and when I request from a client with axios or fetch in React, it has a problem with ids like 9223372036854775800 and converts all ...
Covering asked 5/5, 2019 at 17:11

6

I am currently working on a website using Next.js 14, with the aim of exporting it as a static site for distribution via a CDN (Cloudflare Pages). My site requires internationalization (i18n) suppo...

4

Solved

I'm creating a react app using bun.sh. But I also use tailwindcss for styling and tailwind has no official solution for bun. How can use these two together? I know bun is not ready for production b...
Cubiform asked 9/7, 2022 at 7:51

6

I am trying to include a YouTube video in my react native project. Since I already tried react-native-youtube and did not work at all I tried installing react-native-video. However, I am getting t...
Theorize asked 1/2, 2020 at 15:17

2

Solved

How can I truly CSR (client-side render) some pages in my NextJs application? The documentation says that the presence of either getServerSideProps or getStaticSiteProps in a page would make it pre...
Magnien asked 28/11, 2022 at 7:42

11

I'm having trouble to create npx create-react-app . ➤ YN0009: │ core-js@npm:2.6.11 couldn't be built successfully (exit code 1, logs can be found here: /C:/Users/acer/AppData/Local/Temp/logfile-100...
Let asked 13/10, 2020 at 7:54

© 2022 - 2024 — McMap. All rights reserved.