Open Reynicke opened 3 years ago
Hi @Reynicke
thanks for your issue!
I've been able to reproduce the error though I don't know the reason yet. Maybe stylelint doesn't like the created chunk with the extracted CSS – requires further investigation.
Does it help when you replace this line
lintDirtyModulesOnly: env === 'dev' && process.argv.indexOf('--watch') >= 0
with this?
lintDirtyModulesOnly: true
Hi @SassNinja
lintDirtyModulesOnly: true
helps, but only because Stylelint doesn't do anything then (my guess). If the Webpack watcher is running and I change a file, it crashes.
Also seeing this issue when using Stylelint and this plugin
I've also encountered this issue - I have a very similar setup to @Reynicke in terms of Webpack configuration and packages installed.
Hi!
I try to create a setup consisting of
sass
,stylelint
andmedia-query-plugin
, but the combination ofmedia-query-plugin
andstylelint-webpack-plugin
produces an error. If I remove one of the 2 plugins everything works fine. But together following error occurs:I can avoid this error if I remove certain
MediaQueryPlugin
queries. It works, for example, with a(min-width: 1200px)
query (there are only very few of those in my sass code base). But I could not pinpoint which sass code leads to the error.My Webpack config looks like this:
The used package versions: