Description
Can you reproduce the problem with latest npm?
Yes
Description
React app compilation is periodically / intermittently failing with the error due to a change in eslint-caching as per #1578. A cache file is missing in the node_modules
directory
Expected behavior
App should compile with no errors
Actual behavior
The create-react-scripts
throw the following error when compiling on file change:
Module build failed: Error: ENOENT: no such file or directory, open '/app/client/node_modules/.cache/eslint-loader/data.json'
On closer inspection this seems to happen when I rename / add a new file. However it happens so randomly it has been difficult to pin down.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
[email protected] /app/client
`-- [email protected]
npm info ok
node -v
:
v7.6.0
npm -v
:
4.1.2
-
Operating system: OSX running Docker Image: https://hub.docker.com/r/dylanrhysscott/docker-react-dev/ which is based off of official node images
-
Browser and version: Chrome 56.0.2924.87 (64-bit)
Ping @Timer - Here's the issue. I can't provide my project as its on a private Git server internally but will do all I can to help troubleshoot. Hope this helps!