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
TypeError: Cannot read property 'split' of undefined
at CssModule.nameForCondition (/Users/petejones/projects/livefront/gatsby-plugin-scss-typescript-test/node_modules/mini-css-extract-plugin/dist/index.js:77:39)
It's quite possible that this isn't a bug and the solution is to find the right cssLoaderOptions in gatsby-config.js, but I have not found a combination that works.
The production build fails when there are global SCSS files imported.
Minimal repo for reproducing: https://github.com/peteorpeter/gatsby-plugin-scss-typescript-test
The error:
It's quite possible that this isn't a bug and the solution is to find the right
cssLoaderOptions
ingatsby-config.js
, but I have not found a combination that works.I have tried a variety of suggestions from webpack-contrib/mini-css-extract-plugin#156 and elsewhere.
To reproduce, clone this repo and run:
yarn yarn run build # 💥 BOOM!
The development build runs without error. Commenting out the import of
global.scss
removes the error in the production build.Many thanks for developing this plugin! Even if this (maybe) bug were never resolved I'd work around this to keep using typed SCSS modules.
The text was updated successfully, but these errors were encountered: