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
I try to create a setup consisting of sass, stylelint and media-query-plugin, but the combination of media-query-plugin and stylelint-webpack-plugin produces an error. If I remove one of the 2 plugins everything works fine. But together following error occurs:
UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘syntax’ of undefined
at Root.toString (src/frontend-core/node_modules/postcss-syntax/patch-postcss.js:38:67)
at addToStore (src/frontend-core/node_modules/media-query-plugin/src/postcss.js:14:51)
at /src/frontend-core/node_modules/media-query-plugin/src/postcss.js:59:17
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.
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.
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.
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:
The text was updated successfully, but these errors were encountered: