ahmed alsumairi
ahmed alsumairi

Reputation: 39

How to fix " SassError: Can't find stylesheet to import " in vue3 with webpack 5 ,sass loader12

I am trying to import scss file from assets to components , getting error show that ,

@import "@/assets/scss/_globvar.scss";

this the error i am getting

" Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: Can't find stylesheet to import "

enter image description here

files structure

enter image description here

Upvotes: 2

Views: 6479

Answers (1)

1900 TD Lemon
1900 TD Lemon

Reputation: 41

Prefix path ~ tells webpack to search through node_modules. link

You may need to use relative path or path alias

Upvotes: 0

Related Questions