【发布时间】:2017-11-28 14:23:08
【问题描述】:
我将我的 Web 应用程序更新到最新版本的 React V16.1.1。
除此之外,我还更新了所有最新的依赖项,例如 webpack、babel 等。
webpack 编译并在编译时没有抛出错误,但在运行时,我面临控制台窗口中显示的下面提到的错误。
Uncaught TypeError: Cannot read property 'bool' of undefined
at Object.defineProperty.value (influencerApp.js?ver=1511878497:48295)
at __webpack_require__ (influencerApp.js?ver=1511878497:20)
at Object.defineProperty.value (influencerApp.js?ver=1511878497:21935)
at __webpack_require__ (influencerApp.js?ver=1511878497:20)
at Object.<anonymous> (influencerApp.js?ver=1511878497:101593)
at __webpack_require__ (influencerApp.js?ver=1511878497:20)
at Object.defineProperty.value (influencerApp.js?ver=1511878497:101488)
at __webpack_require__ (influencerApp.js?ver=1511878497:20)
at Object.defineProperty.value (influencerApp.js?ver=1511878497:100898)
at __webpack_require__ (influencerApp.js?ver=1511878497:20)
PS:升级前该应用程序运行良好,有谁知道为什么会发生这种情况?
我无法找到相同的解决方案,任何机构都可以提供帮助。
谢谢。
【问题讨论】:
-
@Leandro:我从 V15 更新了它。我刚刚更新了 react-bootstrap,它开始工作了,我查看了代码,它显示了一些与转换相关的错误。