my package.json includes
"prop-types": "^15.6.0",
"react": "^16.1.0",
"react-dom": "^16.1.0",
"react-html-email": "^3.0.0",
"react-redux": "^4.4.5",
"react-route": "^1.0.3",
"react-router": "^3.2.0",
"react-router-dom": "^4.2.2",
"react-router-redux": "4.0.4",
"redux": "3.5.2",
"redux-thunk": "2.0.1",index.js导入{ Provider }从“react”导入提供程序时,会弹出错误。
storeShape.js:7 Uncaught TypeError: Cannot read property 'shape' of undefined
at Object.<anonymous> (storeShape.js:7)
at __webpack_require__ (bootstrap 6f1183e2a6794c3bb2e7:555)
at fn (bootstrap 6f1183e2a6794c3bb2e7:86)
at Object.<anonymous> (Provider.js:8)
at Object.<anonymous> (bundle.js:51889)
at __webpack_require__ (bootstrap 6f1183e2a6794c3bb2e7:555)
at fn (bootstrap 6f1183e2a6794c3bb2e7:86)
at Object.<anonymous> (index.js:6)
at __webpack_require__ (bootstrap 6f1183e2a6794c3bb2e7:555)
at fn (bootstrap 6f1183e2a6794c3bb2e7:86)我只做了一个改变,我在redux是个新手,所以请你帮忙。
发布于 2017-11-19 16:45:15
根据这的说法,有一个糟糕的npm缓存或错误的react-redux版本会导致您正在发生的错误。因此,更新react-redux的版本应该可以解决这个问题。如果没有,请考虑清除npm缓存,然后尝试再次运行应用程序。
https://stackoverflow.com/questions/47377923
复制相似问题