New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build issues with Sass 1.33+ & deprecation warnings #31797
Comments
Maybe it's better to report this at |
@LekoArts After updating all packages today, the issue seems to be resolved. |
Actually, it seems that it was related to forgetting to import the math namespace in one file, but the error didn't get propagated up through Gatsby. |
I've just hit this issue as well, since yesterday my builds are failing with this nbind. The only recent change made were css but it's complaining about cyclic dependencies? I do not have any math.div usage, I've upgraded all dependencies to the latest version, cleared cache, re-installed etc. but I'm still get this error. I tried to downgrading/upgrading node.js but I get that sharp module error so I'm kind stuck now. I don't understand why I suddenly get this error, this should not happen. It's the type of error I would expect when upgrading but not as a result of a simple content change and a webhook triggering a rebuild? |
@jonmiles The underlying issue that I ran into is that the actual Sass error wasn't written to the Gatsby log output. I'd suggest trying to build your Sass separately and seeing if there's an error reported. |
Actually I fixed my issue in the end, although didn't completely get to the bottom or it. The issue for me that threw this error, seemed to me using variables in same scss module as used for the dynamic post content i.e. where dangerouslySetInnerHTML is used. They are used in every other module but when used with this component it's fails to build with the above nbind error. I assume it's something to do with dynamic injected content but couldn't find anything specific. |
Somehow dart-sass is deprecated and is now named sass - LINK. I added it with
Hope it helps ✌️ |
Description
Sass has implemented deprecation warnings that you cannot disable: sass/libsass#2822
With a recent change,
/
for division is deprecated with a message for each instance suggesting to replace withmath.div(a,b)
As a result, Gatsby fails:
Steps to reproduce
I'll work on making a Minimal Reproduction. My current site uses
rmwc
which references an older version of@material
components (and thus older Sass styles).Expected result
Messages from Sass should be handled during
gatsby build
without crashing.Actual result
gatsby build
fails whenSass
outputs too many errors.Environment
The text was updated successfully, but these errors were encountered: