❔ 'Can't find stylesheet to import.' using SASS with 'Web Compiler 2022+' extension in ASP.NET C MVC
I have created an ASP.NET Core MVC app and I am using several SCSS files which I need to link together. All is good when using a relative path
, but when I try to use an absolute path, I get
Error: Can't find stylesheet to import.
. I believe I have to configure something in
but I can't seem to figure out how.
@import "/_variables.scss"; // Error: Can't find stylesheet to import.
Directory structure: (attached image)
Please ping me if you reply to this post, thanks!