Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 539
Varinder Sohal Avatar asked Nov 15 '22 00:11

Varinder Sohal


2 Answers

I have the same issue used lowercase letters and it resolved

like image 148
Arun kumar mahesh Avatar answered Feb 06 '23 02:02

Arun kumar mahesh


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 .

like image 30
sercan yanbuloglu Avatar answered Feb 06 '23 02:02

sercan yanbuloglu