Skip to content

Source Maps for scss/css not working in Safari #6697

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 Jun 15, 2017 · 5 comments
Closed

Source Maps for scss/css not working in Safari #6697

smlombardi opened this issue Jun 15, 2017 · 5 comments
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity2: inconvenient

Comments

@smlombardi
Copy link

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

1.0.3
OS 10.12.5
Safari 10.1 + Tech Preview 33 (11)

Repro steps.

  1. Set up Angular 4 project with sass as default
  2. run project with ng serve --sourcemap --extractCss
  3. In Chrome 60, inspect an element. Source maps work as expected: you see the original scss file in the web inspector.
  4. In Safari you only see the style applied as coming from styles_bundle.css

Same build, at the same time, side by side. No errors, but Safari does not follow the source maps.

@Brocco Brocco added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity2: inconvenient labels Jun 15, 2017
@MickL
Copy link

MickL commented Jul 15, 2017

Works for me in 1.3.0-beta.1, macOS Sierra and Safari 10.1. I also tried Chrome and Safari. Btw the command is --extract-css not --extractCss.

BUT i don't get sourcemaps for component-styles in any browser:

app.component.scss becomes inline-style, even with --extract-css and doesn't have sourcemap at all.

@smlombardi
Copy link
Author

I've been using ng serve -ec -sm and it doesn't work, still. I'll try 1.3.0-beta.1.

@smlombardi
Copy link
Author

Not working in 1.2.1 with webpack 3.3.0. I tried installing 1.3.0-beta.1 but get all kinds of compile errors and the project won't run.

With 1.2.1/3.3.0 it runs fine but I need to use Chrome still for source maps to work.

@alan-agius4
Copy link
Collaborator

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

@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 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity2: inconvenient
Projects
None yet
Development

No branches or pull requests

5 participants