代码报错了 Cannot read property 'state' of undefined
来源:7-8 actionCreators 与 constants 的拆分
不知不觉19
2019-01-06
Uncaught TypeError: Cannot read property ‘state’ of undefined
at unliftState (:2:31678)
at Object.getState (:2:31745)
at new Provider (Provider.js:17)
at constructClassInstance (react-dom.development.js:13107)
at updateClassComponent (react-dom.development.js:15086)
at beginWork (react-dom.development.js:15980)
at performUnitOfWork (react-dom.development.js:19102)
at workLoop (react-dom.development.js:19143)
at HTMLUnknownElement.callCallback (react-dom.development.js:147)
at Object.invokeGuardedCallbackDev (react-dom.development.js:196)
at invokeGuardedCallback (react-dom.development.js:250)
at replayUnitOfWork (react-dom.development.js:18350)
at renderRoot (react-dom.development.js:19261)
at performWorkOnRoot (react-dom.development.js:20165)
at performWork (react-dom.development.js:20075)
at performSyncWork (react-dom.development.js:20049)
at requestWork (react-dom.development.js:19904)
at scheduleWork (react-dom.development.js:19711)
at scheduleRootUpdate (react-dom.development.js:20415)
at updateContainerAtExpirationTime (react-dom.development.js:20441)
at updateContainer (react-dom.development.js:20509)
at ReactRoot.push…/node_modules/react-dom/cjs/react-dom.development.js.ReactRoot.render (react-dom.development.js:20820)
at react-dom.development.js:20974
at unbatchedUpdates (react-dom.development.js:20292)
at legacyRenderSubtreeIntoContainer (react-dom.development.js:20970)
at Object.render (react-dom.development.js:21037)
at Module…/src/index.js (index.js:6)
at webpack_require (bootstrap:782)
at fn (bootstrap:150)
at Object.0 (style.js:4)
1回答
-
不知不觉19
提问者
2019-01-06
安装的拓展程序问题,已解决
00
相似问题