You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webpack warnings trigger build errors when running on CI #1150
My initial idea was to check warnings to see if there are any related to eslint-loader.
Warnings emitted by eslint-loader contain full loader path, e.g. /long/path/to/node_modules/eslint-loader/index.js.
I couldn't find anything else that would mention eslint or eslint-loader that could be also reliably used to determine that a specific warning comes from ESLint.
Same issue here. My temporary workaround was to unset CI variable in the build script (using .gitlab-ci.yml):
#...build-app:
stage: build-appcache:
paths:
- node_moduleskey: "node_modules"untracked: truescript:
- npm install
- unset CI # <-------- this line helped
- npm run buildartifacts:
paths:
- build#...
Reacted by Mantovani Gabriele, Eric Jinks, @greweb, Farzad Yousefzadeh, Tomas Ohlson, NikolayMur, Filip Drgoň, Sang, Mikhail Grishko (Mykhailo Hryshko), samuel kungu and 7 more
Reacted by Eric Jinks
Reacted by David Ascher, Joey Mink and Hugo Nogueira
fwiw, I've been getting the initial This seems to be a pre-built javascript file warning for some time, but I just upgraded to 1.0.x and it's being suppressed correctly now. ✨
Activity
scholtzm commentedon Dec 4, 2016
My initial idea was to check warnings to see if there are any related to
eslint-loader.Warnings emitted by
eslint-loadercontain full loader path, e.g./long/path/to/node_modules/eslint-loader/index.js.I couldn't find anything else that would mention
eslintoreslint-loaderthat could be also reliably used to determine that a specific warning comes from ESLint.gaearon commentedon Dec 5, 2016
Agree. I’m not sure about this specific fix but please send a PR to get the ball rolling.
Then we can consider alternatives.
scholtzm commentedon Dec 5, 2016
I dug a bit further and couldn't find anything that would provide information about which loader emitted the warning in a reliable manner.
For example an ESLint warning about
eqeqeq,loadersproperty looks like this:There's also
issuerandrequestwhich are just long!webpack strings formed from the info above.edit. Maybe we could use
failOnErrorandfailOnWarningprovided byeslint-loader.kachkaev commentedon Dec 18, 2016
Same issue here. My temporary workaround was to unset
CIvariable in the build script (using.gitlab-ci.yml):scholtzm commentedon Feb 11, 2017
@kachkaev Are there any side effects? Because of this, I'm still stuck at 0.7.5.
kachkaev commentedon Feb 11, 2017
@scholtzm I have not noticed any. Please share yours – others (including myself) may face them in the next project.
gaearon commentedon Feb 11, 2017
Maybe we can ask Webpack to expose a way to turn that warning off? I never found it useful.
9 remaining items
gaearon commentedon May 18, 2017
Please see past discussions when people repeatedly asked to treat warnings as errors in CI. This is common practice.
gaearon commentedon May 18, 2017
@scholtzm Can you check if the issue reproduces on master?
scholtzm commentedon May 18, 2017
I will report back this weekend.
holman commentedon May 22, 2017
fwiw, I've been getting the initial
This seems to be a pre-built javascript filewarning for some time, but I just upgraded to 1.0.x and it's being suppressed correctly now. ✨gaearon commentedon May 22, 2017
The funny thing is we didn’t actually do anything to suppress it. I have no idea why it’s gone 😄
gaearon commentedon May 22, 2017
I’ll close for now but if somebody can reproduce please give me instructions.
holman commentedon May 22, 2017
Haha, MYSTERY FIX
I'll keep an eye out on my end for any weird changes here regardless.