C#
C#

help

Root Question Message

Lounder
Lounder12/1/2022
❔ '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.

Directory structure: (attached image)


Please ping me if you reply to this post, thanks!
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy