C
C#2y ago
Lounder

❔ '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 ../../file.ext, 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 compilerconfig.json but I can't seem to figure out how. Code: File: style.scss
@import "/_variables.scss"; // Error: Can't find stylesheet to import.
@import "/_variables.scss"; // Error: Can't find stylesheet to import.
Directory structure: (attached image) Please ping me if you reply to this post, thanks!
1 Reply
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server