Webpack warnings trigger build errors when running on CI
See original GitHub issue(Initial discussion starts here.)
Pull request https://github.com/facebookincubator/create-react-app/pull/944 adds a new behaviour related to CIs - crash the build during CI whenever linter warnings are encountered.
This PR however introduced new side effect - webpack warnings will also crash the build, e.g.:
This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
We could consider this particular warning to be harmless.
Since we have no access to webpack config, we cannot use module.noParse
option either.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:22 (16 by maintainers)
Top Results From Across the Web
Treating warnings as errors because process.env.CI = true ...
For me replacing npm run build with CI='' npm run build worked. ... in with Key = CI and Value = false; Press...
Read more >treating warnings as errors because process.env.ci ... - You.com
Fix “Treating warnings as errors because process.env.CI = true.” in Cloud environment. Open build setting. On Netlity it is, Project > Settings >...
Read more >npm-ci
Run all build scripts (ie, preinstall , install , and postinstall ) scripts for installed packages in the foreground process, sharing standard input,...
Read more >New CI=true build configuration, "Treating warnings as errors ...
This setting allows many common libraries to detect a CI environment and change behavior accordingly. One such behavior is the disabling of ...
Read more >Command Line Interface - webpack
warning. If you want to run webpack using npx please make sure you have webpack-cli installed. ... Build. Run webpack (default command, can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue here. My temporary workaround was to unset
CI
variable in the build script (using.gitlab-ci.yml
):https://github.com/webpack/webpack/issues/4263