gpt4 book ai didi

webpack - Uncaught ReferenceError : __webpack_require__ is not defined

转载 作者:行者123 更新时间:2023-12-05 06:28:55 50 4
gpt4 key购买 nike

我收到以下错误。几个月来,我的应用程序一切正常,但在运行 npm install 后才开始出现这种情况。

Uncaught ReferenceError: __webpack_require__ is not defined
at eval (client.js:1)
at eval (<anonymous>)
at <anonymous>:33:11
at Object../web/client.js (bundle.js:9667)
at __webpack_require__ (bundle.js:768)
at fn (bundle.js:131)
at Object.0 (bundle.js:9678)
at __webpack_require__ (bundle.js:768)
at bundle.js:904
at bundle.js:907

最佳答案

可能是因为 webpack.config.js 中的 mode: "development"。一个可能的解决方案是同时添加 devtool: "inline-source-map",否则,设置 mode: "production"

关于webpack - Uncaught ReferenceError : __webpack_require__ is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53890392/

50 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com