-
Notifications
You must be signed in to change notification settings - Fork 12k
stylePreprocessorOptions includePaths do not work in 6.0.0-beta.6 #10007
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
same here, changed to relative path but it doesnt work too |
worked for me. check if the root is empty and change
to
|
Where in |
@ciesielskico you should add it like this "styles": [
{
"input": "src/styles.scss"
},
{
"input": "node_modules/bootstrap/scss/bootstrap.scss"
}
],
"stylePreprocessorOptions": {
"includePaths": ["./src", "./folder/you/want/to/include"]
},
"scripts": [] |
@sandangel that works fine. It looks like this has been fixed now |
@sandangel Don't add "stylePreprocessorOptions": { |
I'm having the same issue after upgrading to version 6. I've tried everything noted here and in the other related issues (#10036, #10473) for this bug, but have not had any luck. In my case, I am importing a variables.scss file in a number of component files, so the error is something like the following:
Update: I was missing |
I was getting this error on |
@MickL For me it works in both ways. |
Just wanted to add that if you may need to kill and restart the ng serve process if the stylePreprocessorOptions workaround is not working for you. |
Could anyone please tell me how can I add My
|
Just upgraded from I have no example as the codebase is huge, the only gotcha is that in an If I add the full path it still works so I believe it's something from the new version, or is it ? |
Finally it works!! - Angular: 8.2.2
|
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. |
Versions
Repro steps
ng new --next ng6
Observed behavior
Desired behavior
This type of SCSS/Sass import should work out of the box.
The text was updated successfully, but these errors were encountered: