Skip to content

1.6.4 SCSS/CSS source maps not working #9235

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

Closed
smlombardi opened this issue Jan 16, 2018 · 7 comments
Closed

1.6.4 SCSS/CSS source maps not working #9235

smlombardi opened this issue Jan 16, 2018 · 7 comments

Comments

@smlombardi
Copy link

smlombardi commented Jan 16, 2018

Versions

Angular CLI: 1.6.4
Node: 6.11.2
OS: darwin x64
Angular: undefined
... 
@angular/cli: 1.6.4
@angular-devkit/build-optimizer: 0.0.37
@angular-devkit/core: 0.0.24
@angular-devkit/schematics: 0.0.45
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.4
@schematics/angular: 0.1.12
typescript: 2.6.2
webpack: 3.10.0

Repro steps

Run project with ng serve --sourcemaps --extract-css -o --hmr -e=hmr --proxy-config proxy.config.json

Observed behavior

Inspecting HTML in DevTools shows all the css is in styles.bundle.scss, where it used to display the scss source of the rule. So I can no longer determine where the css rule I am inspecting comes from.

Desired behavior

This used to work before we updated to 1.6.4 and Angular 5.1.3

@Stephane-Peyroutet
Copy link

I don't know if this is related to your problem but some stuff has been broken regarding scss/css in the 1.6.4 release (see #9185).

@smlombardi
Copy link
Author

I rolled back to 1.6.3, same issue.

@pdecembre
Copy link

I tried to remove the tilda from every @import but that didn't fix the issue.
@import '@angular/material/prebuilt-themes/indigo-pink.css'; is breaking with or without the "". So far the only thing that seem to fix the problem is to rollback, both local devDependencies AND global installation To 1.6.1, I don't know about others, but rolling back local devDependencies to 1.6.2 or 1.6.3 didn't fix it for me.

@smlombardi
Copy link
Author

Rolled back to 1.6.1 and I still am not getting source maps.

@michael-letcher
Copy link

michael-letcher commented Jan 17, 2018

Duplicate of (#9099)

@hansl
Copy link
Contributor

hansl commented Jan 23, 2018

Closing as duplicate.

@hansl hansl closed this as completed Jan 23, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants