来源:https://whatibroke.com/2018/05/10/module-not-found-cant-resolve-redux-in-cusersfrontendsrcfrontendnode_modulesreact-reduxesconnect/
方法已经试过,很好用
Hi everyone,
Another quick one. I’d installed react-redux but was running into the following error:
Failed to compile.
./node_modules/react-redux/es/connect/mapDispatchToProps.js
Module not found: Can’t resolve ‘redux’ in ‘C:UserssourcereposFrontEndSrcfrontendnode_modulesreact-reduxesconnect’
Fairly easy fix, you need redux as well as react-redux:
npm install –save redux
Once that’s done, it should all be working!