Gatsby-plugin-sass no longer imports module styles as of 4.0.1 #30037
Labels
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
type: bug
An issue or pull request relating to a bug in Gatsby
Description
Gatsby sass css modules broken in V3. I have read the migration and implemented the new import syntax. When importing sass css modules á la:
There is effectively an empty Module in the output, with no style key/values even if the
SomeStyles.module.scss
has valid styles. I believe this as a result of the update to the Gatsby Sass Plugin that was pushed a few days ago, as returning togatsby-plugin-sass
version 4.0.0 (not 4.0.1) seems to fix issue.Steps to reproduce
Very easy to produce with a Gatsby starter and a simple
*.module.scss
file imported.For ease, here's a temporary repo:
https://github.com/shennan/repro-gatsby-broken-sass-plugin
Expected result
You should see key/values representing styles in the
styles
object after importing.Actual result
The
styles
object is empty, bar some inherited properties.Environment
The text was updated successfully, but these errors were encountered: