-
Notifications
You must be signed in to change notification settings - Fork 12k
~ tilde operator not working as expected (and as it did before) #14387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just noticed that in my
If I change |
I think I might have solved the issue and now both the IDE and the cli work as expected.
|
Hi @tonysamperi, thanks for reaching out. The problem with the above is that That being said, I would strongly advice against using
@clydin, can you chime in and confirm if we should address the above? |
Hi @alan-agius4 thanks for your reply. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: ....Yes. This used to work in cli 1.7.4
Description
A clear and concise description of the problem...In my SCSS files I have something like this:
@import "~scss/some-style";
This code used to look for styles starting from the src folder and worked just fine.
Now I found out that I can use something like this
@import "~src/scss/some-style";
But although my IDE sees the correct path, when I run
ng serve
I get an error and the compile fails.🔬 Minimal Reproduction
To reproduce just put the following line in any component's scss:
@import "~scss/some-style";
Be sure that
some-style.scss
exists under thesrc/scss
folder🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
I'm using sass-loader v 7.1.0
may be this lines relevant?
in
sass-loader/lib/importsToResolve
:in
loader-utils/lib/urlToRequest.js
If root was passed
The text was updated successfully, but these errors were encountered: