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 support #202

Open
henninga opened this issue Feb 10, 2025 · 1 comment
Open

Angular 19 support #202

henninga opened this issue Feb 10, 2025 · 1 comment

Comments

@henninga
Copy link

Hi

Is there any timeframe for supporting the latest angular versions, like v19? I'm getting the same error message as this issue

[ERROR] TS2322: Type 'AngularPlugin' is not assignable to type 'ITelemetryPlugin'.
  Types of property 'setNextPlugin' are incompatible.

I'm on angular ^19.0.3

"@microsoft/applicationinsights-angularplugin-js": "^15.3.5",
"@microsoft/applicationinsights-web": "^3.3.5",
"typescript": "~5.6.2",
@MSNev
Copy link
Contributor

MSNev commented Feb 10, 2025

We don't believe that this error is related to the version of Angular, but instead it a version difference within your repo of @applicaitoninsights/applicationinsights-web (and it's dependencies) and @microsoft/applicationinsights-angularplugin-js, we release v15.3.5 to match v3.3.5, so If your getting this error then I would suggest that you should check your lock / shrinkwrap file for which version is being included. This is a type / compile time issue only and at runtime this does not cause any issues as the current verison of 5.3.5 is still backward compatible with the older versions.

We have not yet identified excactly why this issue keeps surfacing even when we don't update the base interfaces, but we have noticed that later versions of TypeScript (v.5.x) are more "picky" about the interfaces than older versions :-(

In terms of the "Angular 19 support" is there anything specific that is incompatible from the currently targeted Angular 15 that doesn't work in Angular 19?

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