【问题标题】:Updated React to V16.1.1 & other dependencies to latest versions将 React 更新到 V16.1.1 和其他依赖项到最新版本
【发布时间】: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,它开始工作了,我查看了代码,它显示了一些与转换相关的错误。

标签: reactjs webpack


【解决方案1】:

谢谢大家,已经解决了。

我将 react-bootstrap 更新到了最新版本,它开始工作了。

谢谢。

【讨论】:

    猜你喜欢
    • 2015-04-16
    • 1970-01-01
    • 2019-06-15
    • 2015-02-14
    • 2020-10-20
    • 2017-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多