create-react-app: React App Compilation failing due to missing eslint cache file
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 npm@4.1.2
npm info using node@v7.6.0
client@0.1.0 /app/client
`-- react-scripts@0.9.2
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!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 37 (18 by maintainers)
Commits related to this issue
- add check before writing file fix for https://github.com/facebookincubator/create-react-app/issues/1656 — committed to viankakrisna/eslint-loader by viankakrisna 7 years ago
deleted react-scripts patch repo and gists so we can focus on https://github.com/viankakrisna/eslint-loader/tree/port_babel_loader_fs_cache @dylanrhysscott please update to 0.9.3!