You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Angular v20.3 breaks Application Insights with Uncaught TypeError: Cannot redefine property: name #31198
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
This issue was raised on the Applicaiton Insights repo, but we don't define "__name" and according to the people consuming us when they roll back to v20.2 the problem does not occur
Uncaught TypeError: Cannot redefine property: name
at defineProperty ()
at __name (chunk-TJFVSI2U.js:20:33)
at AnalyticsPlugin.js:57:10
Based on out analysis thus far this is a bundling / packaging issue that has been introduced in Angular 20.3 and not a specific issue for Application Insights.
Please provide a link to a minimal reproduction of the bug
See link bug
Please provide the exception or error you saw
Uncaught TypeError: Cannot redefine property: name
at defineProperty (<anonymous>)
at __name (chunk-TJFVSI2U.js:20:33)
at AnalyticsPlugin.js:57:10
Please provide the environment you discovered this bug in (run ng version)
Anything else?
No response
Reacted by Danny Koppenhagen, Tim Hoekstra and Peter
Activity
JeanMeche commentedon Sep 13, 2025
This is likely related to /pull/31123.
A repro found on microsoft/ApplicationInsights-JS#2643:
https://github.com/dougclutter/Angular20WithAppInsights
d-koppenhagen commentedon Sep 15, 2025
It seems the problem occurs with several @Azure libs.
I'm running into the same error, but using @azure/communication-calling:
where
sdk.bundle.jscomes fromnode_modules/@azure/communication-calling/dist-esm/sdk.bundle.jsI opened another issue for @azure/communication-calling: Azure/azure-sdk-for-js#35940
Revert "fix(@angular/build): preserve names in esbuild for improved d…
Revert "fix(@angular/build): preserve names in esbuild for improved d…
Revert "fix(@angular/build): preserve names in esbuild for improved d…
angular-automatic-lock-bot commentedon Oct 17, 2025
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.