简体   繁体   English

找不到模块:无法解析“redux”:“./node_modules/react-redux/es/connect/mapDispatchToProps.js”

[英]Module not found: Can't resolve 'redux' : “./node_modules/react-redux/es/connect/mapDispatchToProps.js”

After installing redux trying to run application but getting error like "can't find the module" in mapDispatchToProps.js which is available in nodemodule folder.安装 redux 后尝试运行应用程序但在 nodemodule 文件夹中可用的 mapDispatchToProps.js 中出现“找不到模块”之类的错误。

Hi Please run below command.嗨,请运行以下命令。

 npm install --save redux react-redux

It should solve your problem.它应该可以解决您的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到模块:无法解析 node_modules 中的“redux” - Module not found: Can't resolve 'redux' in node_modules 无法从“node_modules / react-redux / lib / index.js”中解析“./components/connect” - Unable to resolve “./components/connect” from “node_modules/react-redux/lib/index.js” 安装了react-redux和redux模块的连接反应路由器无法解析模块'react-redux' - Can't resolve module 'react-redux' in connected-react-router with react-redux and redux modules installed 无法从“node_modules \\ react-redux \\ lib \\ index.js”中解析“./utils/batch” - Unable to resolve “./utils/batch” from “node_modules\react-redux\lib\index.js” 错误:未找到模块:错误:无法解析“ D:\\ opensource \\ sound-redux \\ node_modules \\ soundcloud”中的“ ./src/api” - Error: Module not found: Error: Can't resolve './src/api' in 'D:\opensource\sound-redux\node_modules\soundcloud' 连接react-redux和mapDispatchToProps后无法调用操作 - Can not invoke action after connect react-redux and mapDispatchToProps React-Redux:找不到mapDispatchToProps方法 - React-Redux: mapDispatchToProps methods not found 无法从“../../node_modules/@reduxjs/toolkit/node_modules/react-redux/lib/utils/reactBatchedUpdates.js”中找到模块“react-dom” - Cannot find module 'react-dom' from '../../node_modules/@reduxjs/toolkit/node_modules/react-redux/lib/utils/reactBatchedUpdates.js' 无法从“/react/node_modules/react-redux/lib/components”中找到模块“react” - Cannot find module 'react' from '/react/node_modules/react-redux/lib/components' 具有react-redux的connect()和类组件的mapDispatchToProps - mapDispatchToProps with react-redux' connect() and class components
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM