I'm trying to use the Sass parts of Material design official library inside my Nuxt project.
I have created a file inside assets folder called styles.scss
and tried to import a simple component like this :
@import "~@material/textfield/icon/mdc-text-field-icon";
However it's displaying me this error :
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
@import "@material/theme/variables";
^
File to import not found or unreadable: @material/theme/variables.
Obviously it's because there is no ~
inside the import name so Nuxt doesn't know where to find it...
Does anyone know how i can solve this ? With node-sass, i used the --include-path
to solve this issue but i didn't found anything similar in nuxt...
Thanks in advance !