Error: Prevent writing to file that only differs in casing or query string from already written file. reactjs laravel

Viewed 7190

I am working on a laravel reactjs project and when I run the command npm run dev the compilation stuck at 95% and give the following error. I checked in the whole project there is no file calling with the case-sensitive names all images are calling with the lower case letters.

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

React: 17.0.1

Webpack: 5.21.2

Node: 14.15.2

2 Answers

I have the same issue used lowercase letters and it resolved

I got a similar error. the solution is as follows

/media/public/images/user-4.jpg
/media/public/images/user-4.jpg

rewrite

[name]user-4.jpg

I think your problem is path .

Related