Closed OzBob closed 1 year ago
@OzBob Thanks for your feedback! We will investigate and update as appropriate.
could be related to this issue https://github.com/microsoft/applicationinsights-angularplugin-js/issues/76
The latest code sample is available on GitHub.
https://github.com/microsoft/applicationinsights-angularplugin-js
@AaronMaxwell points out that the latest App Insights Ng plugin: https://github.com/microsoft/applicationinsights-angularplugin-js/blob/main/sample/applicationinsights-angularplugin-sample/package.json#LL27C5-L35C53 recommends:
"@microsoft/applicationinsights-angularplugin-js": "^3.0.2",
"@microsoft/applicationinsights-web": "^2.8.12",
So, I would recommend the docs 'Getting Started' section be updated from:
npm install @microsoft/applicationinsights-angularplugin-js@3.0.2 @microsoft/applicationinsights-web@2.8.13 --save
to
npm install @microsoft/applicationinsights-angularplugin-js @microsoft/applicationinsights-web --save
@OzBob - Thanks again for bringing this to our attention. We have updated the Doc and it will be live once its merged. We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
The sample TS code for the Angular app here https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-framework-extensions?tabs=angular#basic-usage-1
when pasted into an Angular 14.1.3 project produces the following 2 errors:
1 "app.component.ts",
2 app.module.ts ""Cannot find name 'ErrorHandler'.""
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.