-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Comments
@roma2341 Could you share the angular.json settings? |
Thanks, i changed "aot": false to "true" and now it seems to work fine, every ts file has sourcemaps 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 |
I've ran into this or a version of this bug. About 5% of my dependencies' sourcemaps are missing in the final bundle. Original .ts sources don't show up, and names and symbols for that module link to a different dependency that's in the same chunk making debugging of the affected dependency a nuisance. Setting "aot": true made no difference in my case. In fact, stepping through angular-cli's build code I noticed that I've narrowed the issue to the esbuild binary itself, so it might be a bug with esbuild 0.25.0 which angular-cli recently upgraded to. Some of the generated chunks simply do not include the respective sourcemaps of the code they bundle. My current workaround for an affected dependency is to remove its |
From #29697
|
I had a look at this and it seems like an issue with esbuild since 0.24.1 where the sourcemap includes missing sources. See: evanw/esbuild#4104 |
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
The text was updated successfully, but these errors were encountered: