gpt4 book ai didi

javascript - 模块构建失败(来自 ./node_modules/source-map-loader/dist/cjs.js)

转载 作者:行者123 更新时间:2023-12-05 03:23:35 28 4
gpt4 key购买 nike

我正在尝试使用 React 制作一个电子商务网站。它工作得很好,但是在我安装 reduxreact-redux 之后,我收到了这个错误:

Uncaught Error: Module build failed (from ./node_modules/source-map-loader/dist/cjs.js):
Error: ENOENT: no such file or directory, open 'D:\ProgrammingHero\foodie\client\node_modules\core-js-pure\modules\esnext.global-this.js'
at ./node_modules/core-js-pure/modules/esnext.global-this.js (global-this.js:6:1)
at options.factory (startup:7:1)
at __webpack_require__ (jsonp chunk loading:133:1)
at fn (jsonp chunk loading:367:1)
at ./node_modules/core-js-pure/full/global-this.js (global-this.js:2:1)
at options.factory (startup:7:1)
at __webpack_require__ (jsonp chunk loading:133:1)
at fn (jsonp chunk loading:367:1)
at ./node_modules/core-js-pure/features/global-this.js (global-this.js:1:1)
at options.factory (startup:7:1)

但是如果我卸载 reduxreact-redux 它会完美地工作。

最佳答案

删除你的node_module文件夹然后运行

 npm i

它解决了我的问题

关于javascript - 模块构建失败(来自 ./node_modules/source-map-loader/dist/cjs.js),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72500500/

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