Skip to content

Angular v20.3 breaks Application Insights with Uncaught TypeError: Cannot redefine property: name #31198

@MSNev

Description

@MSNev

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

microsoft/ApplicationInsights-JS#2643

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions