我正在做一个laravel reactjs项目,当我运行命令npm run dev
时,编译卡在95%,并给出以下错误。我检查了整个项目,没有文件调用与大小写敏感的名称,所有图像调用与小写字母。
Error: Prevent writing to file that only differs in casing or query string from already written file.
This will lead to a race-condition and corrupted files on case-insensitive file systems.
/media/public/images/user-4.jpg
/media/public/images/user-4.jpg
反应:17.0.1
Webpack: 5.21.2
节点:14.15.2
我有同样的问题,使用小写字母,它解决了
我得到了一个类似的错误。解决方案如下
/media/public/images/user-4.jpg
/media/public/images/user-4.jpg
重写
[name]user-4.jpg
我认为你的问题是路径。
在我的情况下,我有两个入口点在我的webpack.config.js
,错误地没有修改第二个
所以改变
entry: { main: './src/index.tsx', another: './src/index.tsx' }
entry: { main: './src/index.tsx', another: './src/someOtherIndex.tsx' }
修复错误