Latest Questions tagged Reactjs

Browse all latest questions tagged Reactjs

Published 19 Jun, 2022
Reactjs - yup addMethod not working in typescript yup version

yup package Issue When a custom method added to yup instance using the addMethod function, It produces the error below TS2339: Property 'title' does not exist on type 'typeof import("node_modules...

Published 02 May, 2022
React - Npm install reactjs app npm ERR! code E404

I am new to reactjs, and I am trying to create a reactjs app, and I follow the steps on react web, and it shows error. My node version is v8.11.1.npx version is 9.7.1. btw I can create the app with n...

Published 17 Jun, 2022
Reactjs - Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Select)`, expected a ReactNode

I'm trying to render certain inputs if a variable is true but when the component render displays the warning Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Select)`, expect...

Published 17 Jun, 2022
Reactjs - Why am I getting ReferenceError: self is not defined when I import a client-side library?

Trying to create an xterm react component in Next.js I got stuck as I'm not able to get over an error message I've never got before. I'm trying to import a npm client-side module called xterm, but if...

Published 22 Apr, 2022
React - ESlint - Error: Must use import to load ES Module

I am currently setting up a boilerplate with React, Typescript, styled components, webpack etc. and I am getting an error when trying to run eslint: Error: Must use import to load ES Module Here is...

Published 16 Jun, 2022
Reactjs - MobX: Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed

My context looks like this: class AuthStoreClass { authUser = null constructor() { makeAutoObservable(this) } login = async (params) => { const { data: { data: aut...

Published 13 May, 2022
React - Redux store does not have a valid reducer

Haven't been able to find anything around here regarding this error: "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers."...

Published 11 May, 2022
React - Running python scripts in Next.js

Is it possible to call a python script to run server-side by Next.js? I am trying to set up a way to call some python packages I have already developed to be run on my website that is built via React....

Published 19 Jun, 2022
Reactjs - Using multiple api calls with set state under UseEffect with one dependency, how to prevent extra re render of child components?

I'm new in React world, I'm struggling to prevent extra rerender of child stateless component, but no luck here is my code import React, { useEffect, useState } from "react"; import Lab from...

Published 25 Jun, 2022
Reactjs - basename and homepage not working as expected to serve /static/ files in development

Not sure if this is a Kubernetes, ingress-nginx, or ReactJS (create-react-app) issue... Project Structure new-app/ client/ src/ App.js index.js Test.js package.json k8s...

Published 23 Jun, 2022
Reactjs - react-quill loses focus when onChange is called

I have a component wrapper in antd Form.create() HOC where I want to implement validation for my react-quill editor. <Form.Item> {getFieldDecorator('input', {...

Published 19 Apr, 2022
React - Typescript is giving me an error: Expected 0 arguments, but got 1

I want to define the interface the proper way but I am having trouble because it is expecting an argument even though the argument is empty. I am using useContext and I defined the interface like thi...

Published 17 Jun, 2022
Reactjs - React Redux: How to handle errors in RTK Queries/Mutation Typescript?

Hope your all are doing fine. Im using Typescript with RTK mutation everything is working good but if i send any error from backend in specific json format like { status: "Error", mes...

Published 21 Jun, 2022
Reactjs - How to get the first and last visible date in React Big Calendar?

How to get the first and last visible date in React Big Calendar? This will facilitate database queries to view events. I'm trying to call the onNavigate () function and get start and end using the mo...

Published 13 Apr, 2022
React - How can I change the width of Material UI Autocomplete popover

When using the Select from Material-UI, there's a prop there called 'autoWidth' which sets the width of the popover to match the width of the items inside the menu. Is there a similar option for the A...