The problem of @ import using aliases to reference files in vue

I have an error compiling with @ import reference file in the < style > tag of my vue file

@ import "~ @ / assets/s.styl";
@ import "~ @ / assets/dd2.css";
compilation error written above

@ import ".. / assets/s.styl";
@ import ".. / assets/dd2.css";
this is normal, no problem

my @ alias is normal, and the following are all normal
background: url ("~ @ / assets/logo.png");
import HelloWorld from"@ / components/HelloWorld"

I would like to ask you, what is my problem? Is there something to configure?

Nov.29,2021

I also encountered this problem. Did the landlord solve it

?
Menu