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

Angular 19 doesn't generate sourcemaps for some ts files #29656

Open
roma2341 opened this issue Feb 17, 2025 · 3 comments
Open

Angular 19 doesn't generate sourcemaps for some ts files #29656

roma2341 opened this issue Feb 17, 2025 · 3 comments

Comments

@roma2341
Copy link

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

core

Is this a regression?

Yes

Description

Angular - 19.1.6
I noticed that its become very hard to debug code in browser, it appeared that angular doesn't build sourcemaps for some components. What is interesting is that some components have sourcemaps. I tried both chrome and firefox.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


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


Anything else?

No response

@roma2341
Copy link
Author

Image

Image

@JeanMeche JeanMeche transferred this issue from angular/angular Feb 17, 2025
@binerdy
Copy link

binerdy commented Feb 20, 2025

@roma2341 Could you share the angular.json settings?
I have an issue where I can't debug components, because we have aot disabled.

@roma2341
Copy link
Author

roma2341 commented Feb 20, 2025

@roma2341 Could you share the angular.json settings? I have an issue where I can't debug components, because we have aot disabled.

Thanks, i changed "aot": false to "true" and now it seems to work fine, every ts file has sourcemaps

Image

Image

It's very interesting because i thought that this option wasn't used by angular anymore because we can't disable aot if i understand correctly

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

No branches or pull requests

2 participants