score:11
Accepted answer
Do not use save-dev
for Redux. Remove it from devDependencies
:
npm uninstall redux --save-dev
and install it again with:
npm i redux --save
score:1
after running npm install @reduxjs/toolkit try restarting your server.
score:7
Simply installing the react toolkit should fix the problem.
# NPM
npm install @reduxjs/toolkit
# Yarn
yarn add @reduxjs/toolkit
Source: stackoverflow.com
Related Query
- why do i get the Error Module not found: Can't resolve 'redux'
- Why do I get this error - Compiled with problems: Module not found: Error: Can't resolve 'react-top-loading-bar' while installing top-loading-bar
- How to fix this error : " Module not found :can't resolve popper.js "
- Why do I always get a cors error that wildcard * is not allowed, although I specified a origin on the server?
- Cannot resolve module "firebase" from 'firebase.js' : Firebase could not be found within the project
- How to resolve module not found error in webpack/reactjs app?
- how to solve the error that fs module is not found when used react and next.js
- Getting the error : Module not found: Can't resolve 'firebase/app'
- RollupJS ES6 module can't get imported because of default not found for redux and redux-form
- Why do I get the "setShowModal is not defined" error message in react?
- why do I get the error X is not iterable when setting state with the spread operator?
- Why am I getting the error data.findIndex is not a function in my React with Redux project?
- Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in the package.json of a module in node_modules
- Getting an error "A non-serializable value was detected in the state" when using redux toolkit - but NOT with normal redux
- Why do I get the error "expressions must have one parent element", how do I fix this?
- "module not found : Error: Cannot resolve module 'react/lib/ReactMount' "
- How to resolve "Animated: `useNativeDriver` is not supported because the native animated module is missing." in react-navigation?
- How to fix Next.js Vercel deployment module not found error
- Module not found Error when deployed on Heroku
- Typescript Module not found Can't resolve
- Module not found Error: Can't resolve 'history' in @types/history
- Why is this returning the error .contains() is not a function
- Why does jest-dom give the error "TypeError: expect(...).not.toBeVisible is not a function" when I use it
- react-native : Unable to resolve module `tty` from ''.../node_modules/window-size/index.js": Module does not exist in the module map
- Firebase-Admin, importing it to react application throws Module not found error
- Why am I getting the error message "Property 'then' does not exist on type 'AsyncThunkAction'"?
- Using React, why is redux saga not intercepting the action?
- Module not found error using Yarn 2 to link React components
- React + Redux - Why not connect all the components?
- Why is this variable from the Redux store not in the `this.props` on React page?
More Query from same tag
- React jsx style tag not applied to tags returned by functions
- setState not working with forloop in react function
- How can I change the color of the active navbar item?
- React Router and History
- How can I add values to this array using onClick
- Tailwind CSS responsive behavior on nextjs app
- The sx styling for Drawer element does not work
- How can I sort my data based on ratings using react js
- Create own react route class in typescript
- Object.assign behavior in this case
- next/link losing state when navigating to another page
- How can I get the coordinates of a given element in react tsx
- Does React.js require to have a node_modules folder to run?
- TypeError: d[("get" + method)] is not a function in reactjs while reading data from firebase
- Remove rest of string after the second to last index of
- Iterate through Object of arrays in react js
- Cannot access geolocation inside of function
- Counting values of select inputs in ReactJS
- React adding fields from a drop down menu
- How do v call the render function of a class from a function of another class in ReactJS?
- Changing the value of nested field in react final form
- Why the React Route with 2 optional params not matching a simple URL
- What is the purpose of an Array.prototype.map() invocation with an arrow function with two inputs?
- React keyboard Event not firing when modal opens
- How do I change the attributes of an RMWC Component?
- jsx-a11y returning Form label must have associated control when there is an htmlFor
- Stop tabs from reloading after initial load in React
- Return component to original state or force re-render after using setTimeout()
- Get div innerHTML onBlur?
- React dynamic template for component