Open Glusk opened 3 years ago
Same issue. The react build script fails when generating the build within docker;
Tried deleting the local node_modules and everything. Some stack overflow answers indicate that it can be fixed with upgrading the local npm and node versions to something above 10. Both my local env and the docker env is 14; On macOS big Sur.
Reference:
Describe the bug
The default config for Travis CI on this page (
running-tests.md
) suggests the use of Node 8.Create React App, however, has moved on and some of its dependencies require a later Node version so the CI build fails with very strange and unhelpful warnings.
Setting Node version to 12 in
.travis.yml
resolves the issue.Did you try recovering your dependencies?
No.
Which terms did you search for in User Guide?
"Travis CI"
Environment
Environment on my local system:
Steps to reproduce
npx create-react-app app-name
.travis.yml
from the docs to the projectExpected behavior
I expected a clean CI build on a fresh project.
Actual behavior
I don't think this is relevant but pasting it anyway. Build fails with:
Reproducible demo
/