Won't build with variables and sass:math #3814
Unanswered
Nordicdesign
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I have a small project with a few sass files, I'm using @snowpack/plugin-sass and it works fine in development but when I run build it'll complain.
When I tried building it locally, first complained about the variable:
So I imported that file directly to
Header.scss
which solved the issue, but it's not nice if I have to import my variable files on every single one of them.Then complained about the built-in module
sass:math
that I use for divisions (if I use the old / snowpack or the linter will complain that it's deprecated and force me to use sass:mathThe error in build:
So I had to remove my maths and put that manually for now for it to build.
Any thoughts on how to solve this?
Cheers,
Alex
Beta Was this translation helpful? Give feedback.
All reactions