You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The strings you pass to @import rules are parsed the same way all CSS strings are, which means that backslashes are interpreted as escape codes rather than as literal backslash characters. This means that the import sees the string "C:workindex.scss", which is not what you intend.
My strong recommendation is to always use forward-slash-separated relative paths to refer to other stylesheets, possibly along with configured load paths so that you can access stylesheet libraries. This will provide the most portability across different systems and configurations.
If you really want to use an absolute path, though, I recommend using absolute file: URLs. In this case, you'd write @import "file:///c:/work/index.scss".
@nex3 Thank you for your answer! It really helped me to recognize the problem with backslashes.
It also seems that path.replace(/\\/g, "/") works for me as well as I need.
Hello there!
I'm trying to compile this piece of code:
The
index.scss
is:And I'm sure that it is in the folder I'm looking for.
But after js build-in compile I've got this:
What can I do wrong? This path is very absolute.
Other sass compilation seems to be very good and suffice me,
JS piece of code:
The text was updated successfully, but these errors were encountered: