Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Watcher doesn't see a new file called "index.js" inside a subfolder #1164
I have an app with this folder structure :
Inside the index.js file, I have this line :
Which causes this error :
When I add a
Is there a reason why the folder import doesn't work without a trailing slash, or is this a bug ?
I should be able to import something from the
I need to put a trailing slash at the end of the
Run these commands in the project folder and fill in their results:
No worries. This is kinda weird—my guess is that it remembers that it couldn't find the file with that exact name, and later gives up searching for it again. Not very good so if you find an easy way to reproduce this step by step (e.g. create a file with some name, then add an import with some form) and it always happens, maybe we should file a bug in one of the upstream projects. Please let me know!
Ok so i've successfully reproduced, it's very easy in fact.
If I get some more time i'll try to reproduce with webpack-dev-server without react but it may be specific to a particular setting that's use in create-react-app.