Urthen / case-sensitive-paths-webpack-plugin

Enforces case sensitive paths in Webpack requires.
MIT License
428 stars 45 forks source link

Breaks with npm link #12

Closed mxstbr closed 7 years ago

mxstbr commented 7 years ago

I npm linked a library that I'm developing into a fresh create-react-app'd project, and it worked perfectly fine.

Then I changed something in the library, which meant it would delete the lib/ folder and recompile all the files.

No matter how long I waited CaseSensitiveWebpackPlugin always threw this error, even when the file long exists again! I have to restart the server for every tiny library change, which is specifically something I tried to avoid.

Module not found: [CaseSensitivePathsPlugin] `/Users/something/sites/somelib/styled-components/lib/index.js` does not match the corresponding path on disk - File does not exist.

/cc @gaearon so he's aware since this breaks in create-react-app, might be issues over there too.

mxstbr commented 7 years ago

Hmm, I cannot replicate this anymore. Might have just been some wonkyness on my machine, sorry! Disregard!