redux-toolkit: Can't find redux
Hey guys, I’ve just installed the newest version of toolkit and I am getting an error that it cannot find redux. Can anyone help me?
error: Error: Unable to resolve module ../../../../redux from .../node_modules/@reduxjs/toolkit/dist/redux-toolkit.cjs.production.min.js:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
One of developers on project has change something in babelrc, and created alias redux so toolkit tried to import it from there.
Just guessing: does your project contain a folder named
redux
or a file namesredux.js
in the root?