Urthen / case-sensitive-paths-webpack-plugin

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

Error when new file is created #17

Closed caesarsol closed 7 years ago

caesarsol commented 7 years ago

When I create a new file while the server is running, and modify another one to refer to it, the plugin thinks the file doesn't exist and throws an error.

I have a test case to reproduce it, posting it in a few hours.

caesarsol commented 7 years ago

@Urthen I think it has to do with the FS caching by the plugin, could it be?

Urthen commented 7 years ago

Possible. Originally it was supposed to re-check the FS if a file wasn't found in the cache, but I had a big PR recently and it might have affected that. I'll look into it.

caesarsol commented 7 years ago

@Urthen here is the failing test: https://github.com/caesarsol/case-sensitive-paths-webpack-plugin/commit/41f11a50a2d1552810da34ce0b29d9fa4e3459e6

(I refactored something in testing code in the preceding commit)

caesarsol commented 7 years ago

Do you have any hint in fixing it?

msuzoagu commented 7 years ago

@Urthen Having the same issue and not sure how to fix. Would appreciate feedback. Thanks.

caesarsol commented 7 years ago

@msuzoagu Temporarily just restart the dev server :)

Urthen commented 7 years ago

Published 2.1.0 which should fix this. Can you give it a test?

Urthen commented 7 years ago

Reported as resolved elsewhere, closing.