-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Bug Report] sass:math error when using custom variables #13737
Comments
Workaround is to load your custom variables with css: {
loaderOptions: {
sass: { additionalData: '@use "@/variables.scss" as *' },
scss: { additionalData: '@use "@/variables.scss" as *;' },
}
} |
@KaelWD |
how to workaround when using @nuxtjs/vuetify module |
This issue just blew up my project. Also interested in |
This could be of interest. |
@KaelWD 's solution unfortunately did not work for me and I had to force back to version 2.5.1 in my package.json (which worked) |
@mlockett42 even after forcing my dependency to 2.5.1, deleting node_modules and package-lock.json then running npm install, I've had no luck |
Same scenario and same result.. |
This works for me: npm install [email protected] |
@KaelWD |
This happened to me as well. I've decided to revert to an older Vuetify for the moment until this is fixed. |
it works |
I am trying to migrate to vuetify 2.5.2 and sass 1.33, but I am still receving the "sass:math" errors in the console
vue.config.js
|
@Dickens-Shaw my question is how to migrate correctly, not to use the old version of those deps 😄 |
@Oleksii14 got it! I tried as well, but give up now!😭 |
@KaelWD any ideas? |
@KaelWD can you take a look at my package file and tell me what may be wrong there? How can I migrate to sass 1.34 and vuetify 2.5.3 correctly? |
You can't, see #13694 (comment) |
Problem to solve
Error when compiling
error in ./node_modules/.pnpm/[email protected][email protected]/node_modules/vuetify/src/components/VSlider/VSlider.sass
Syntax Error: SassError: @use rules must be written before any other rules.
╷
4 │ @use 'sass:math'
│ ^^^^^^^^^^^^^^^^
╵
node_modules/.pnpm/[email protected][email protected]/node_modules/vuetify/src/components/VSlider/VSlider.sass 4:1 root stylesheet
@ ./node_modules/.pnpm/[email protected][email protected]/node_modules/vuetify/src/components/VSlider/VSlider.sass 4:14-362 15:3-20:5 16:22-370
@ ./node_modules/.pnpm/[email protected][email protected]/node_modules/vuetify/lib/components/VSlider/VSlider.js
@ ./node_modules/.pnpm/[email protected][email protected]/node_modules/vuetify/lib/components/VSlider/index.js
@ ./node_modules/.pnpm/[email protected][email protected]/node_modules/vuetify/lib/components/index.js
@ ./node_modules/.pnpm/[email protected][email protected]/node_modules/vuetify/lib/index.js
@ ./src/plugins/vuetify.js
@ ./src/main.js
@ multi ./node_modules/.pnpm/[email protected][email protected]/node_modules/webpack-dev-server/client?http://192.168.1.151:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
The text was updated successfully, but these errors were encountered: