Closed lukasjuhas closed 5 years ago
Use scss: ['...']
(an array instead of a single string) ☺️
Thanks @manniL , unfortunatelly, that didn't help 👀
styleResources: {
scss: [
'@/assets/styles/_variables.scss'
],
},
I tried also ~
instead of @
, as well as removing yarn lock file, removing node_modules
and re-installing them. Any other suggestions? Cheers!
The errors I'm getting look like this:
...
ERROR Failed to compile with 5 errors friendly-errors 16:36:48
ERROR in ./pages/index.vue?vue&type=style&index=0&lang=scss& friendly-errors 16:36:48
Module build failed (from ./node_modules/sass-loader/lib/loader.js): friendly-errors 16:36:48
font-size: $font-size-base;
^
Undefined variable: "$font-size-base".
...
Strange. Can you try to add sass-resources-loader
manually by using yarn add sass-resources-loader
(or the npm equivalent) to make sure it's really not a dependency issue? ☺️
Thanks! Unfortunatelly that didn't help 🙈 @manniL . Same thing.
@lukasjuhas Alright. Would you mind to create a minimal reproduction via https://template.nuxtjs.org/ so we can debug that better? ☺️
Sounds like a good plan @manniL, will do that shortly. Thanks.
I have the same issue
After deleting all node_modules, package-lock.json, reinstall all packages and rename nuxt.config.js to nuxt.config.ts - all good :)
You are a star @dschewchenko ! Thank you so much. that did it for me. Had to rename nuxt.config.js
to nuxt.config.ts
Thank you very much for your help @manniL, at least this issue will help someone else who is having the same problem.
Having this same problem none of the above mentioned did the trick.
@envision create a new issue with reproduction then.
Hey, thanks for the package.
I was wondering if anyone else has problems using this with
nuxt-ts
that came with nuxt 2.4 ?I've gone through the example, and through issues here on github to make sure my set up is correct but I cannot seem to get working.
In my case, I'm trying to import
scss
variables.Thanks for your help and suggestions.