Skip to content
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

Components sourcemap not resolved when using sub-paths #27613

Open
Andriypodolian opened this issue May 8, 2024 · 1 comment
Open

Components sourcemap not resolved when using sub-paths #27613

Andriypodolian opened this issue May 8, 2024 · 1 comment

Comments

@Andriypodolian
Copy link

Andriypodolian commented May 8, 2024

Which @angular/* package(s) are the source of the bug?

compiler, router

Is this a regression?

No

Description

Source mapping for style files does not work
I have attached a project in which I reproduced this problem.

If you go along the path of the localhost:4200/first-level
then the source map for styles is correct,

Знімок екрана 2024-05-08 о 12 09 12

but if you go to the localhost:4200/first-level/second-level,
the path to the file is not defined

Знімок екрана 2024-05-08 о 12 09 26

Please provide a link to a minimal reproduction of the bug

https://github.com/Andriypodolian/scss-source-map

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.3.4
Node: 20.11.0
Package Manager: npm 10.2.4
OS: darwin arm64

Angular 17 with SSR, no standalone app

Anything else?

When you run with ssr "yarn start:prerender"
everything works correctly

@alan-agius4 alan-agius4 transferred this issue from angular/angular May 8, 2024
@alan-agius4 alan-agius4 changed the title SCSS source maping Components sourcemap not resolved when using sub-paths May 8, 2024
@sod
Copy link

sod commented May 8, 2024

Would be awesome if you allowed us to choose inline sourcemaps for component styles.

This would not only solve this issue but also work when using dev mode via custom domains & subdomains and also save a ton of extra OPTIONS & GET requests on each page load in dev mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants