英文:
HookWebpackError: Cannot read properties of undefined (reading 'e') -- inner error -- TypeError: Cannot read properties of undefined (reading 'e')
问题
我多年来一直使用npx-create-react-app,但现在无法使用npm run build进行构建。
今天仍然无法正常工作。
我已经更新了Node和npm,并且使用以下命令清除了缓存:npm cache clean --force。
所有项目都无法正常工作,无论是旧的还是全新的。
谢谢。
我不希望在我的电脑上公开敏感信息,但本质上无法加载文件。它从App.css开始,但我已经将其注释掉,问题仍然存在。
HookWebpackError: 无法读取未定义的属性(读取'e')
-- 内部错误 --
TypeError: 无法读取未定义的属性(读取'e')
在D:\xxxx\xxx\xxx\node_modules\css-loader\dist\cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!D:\xxxxx\xxxxxxxzx\xxxx\node_modules\postcss-loader\dist\cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!D:\xxxxxxx\xxxxxxxxx\xxxxx\node_modules\source-map-loader\dist\cjs.js!D:\xxxxxxxx\xxxxxxx\xxxxxxx\src\App.css生成的代码
英文:
I use npx-create-react-app years, but now i can't build with run npm run build.
Today still is work.
I update node and npm. Clear the cahce with: npm cache clean --force
None of the projects work. neither with the old nor with the brand new.
Thank you
I not want public sensitive infromation for my pc but the essence can't load file. I'ts staring with App.css but i comment out come to next one.
HookWebpackError: Cannot read properties of undefined (reading 'e')
-- inner error --
TypeError: Cannot read properties of undefined (reading 'e')
Generated code for D:\xxxx\xxx\xxx\node_modules\css-loader\dist\cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!D:\xxxxx\xxxxxxxzx\xxxx\node_modules\postcss-loader\dist\cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!D:\xxxxxxx\xxxxxxxxx\xxxxx\node_modules\source-map-loader\dist\cjs.js!D:\xxxxxxxx\xxxxxxx\xxxxxxx\src\App.css
答案1
得分: 1
这已在Webpack 5.83.1中修复。
英文:
This has been fixed in Webpack 5.83.1.
答案2
得分: 0
The solution somebody give and i sign that was the solution. But deleted his answer cause it was solved in the meantime.
But similar error may occur later so I give that solution again...
npm i webpack@5.82.0
英文:
The solution somebody give and i sign that was the solution. But deleted his answer cause it was solved in the meantime.
But similar error may occur later so I give that solution again...
npm i webpack@5.82.0
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论