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

Add support for Angular v12 #23

Closed
drielnox opened this issue Jun 23, 2021 · 6 comments
Closed

Add support for Angular v12 #23

drielnox opened this issue Jun 23, 2021 · 6 comments
Milestone

Comments

@drielnox
Copy link

Installing this package on Angular v12, npm throws me this:

PS C:\Users\developer\Documents\a_folder> npm i --save @microsoft/applicationinsights-angularplugin-js 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: a_project@0.0.0
npm ERR! Found: @angular/common@12.0.5
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~12.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^11.0.6" from @microsoft/applicationinsights-angularplugin-js@2.6.3
npm ERR! node_modules/@microsoft/applicationinsights-angularplugin-js
npm ERR!   @microsoft/applicationinsights-angularplugin-js@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\developer\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\developer\AppData\Local\npm-cache\_logs\2021-06-23T17_38_03_592Z-debug.log
@abisleem
Copy link

abisleem commented Jul 2, 2021

Any updates on this? I'm facing a similar issue but with @angular/common@10.2.5

@drielnox
Copy link
Author

drielnox commented Aug 5, 2021

@xiao-lix Do you know when they are going to release the new version with the fix? I ask this, because I have an item in the backlog of my company's project that is blocked for this reason.

@xiao-lix xiao-lix added this to the 2.6.4 milestone Aug 12, 2021
@xiao-lix
Copy link
Contributor

@drielnox hi , just released 2.6.4 version. Please test it out. Thanks.

@drielnox
Copy link
Author

drielnox commented Aug 17, 2021

@xiao-lix It still doesn't work.

PS C:\Users\developer\Source\a_folder> npm install @microsoft/applicationinsights-angularplugin-js
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: a_project@0.0.0
npm ERR! Found: @angular/common@12.1.5
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~12.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^11.0.6" from @microsoft/applicationinsights-angularplugin-js@2.6.4
npm ERR! node_modules/@microsoft/applicationinsights-angularplugin-js
npm ERR!   @microsoft/applicationinsights-angularplugin-js@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\developer\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\developer\AppData\Local\npm-cache\_logs\2021-08-17T18_21_05_491Z-debug.log

@danielloynaz
Copy link

danielloynaz commented Nov 12, 2021

Hi @xiao-lix,
@angular/common was upgraded to 11.0.6. Angular 12 is not supported, it should be @angular/common@ ^12.x.x

$ npm install @microsoft/applicationinsights-angularplugin-js
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: angular12-ui@1.0.0
npm ERR! Found: @angular/common@12.2.13
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~12.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^11.0.6" from @microsoft/applicationinsights-angularplugin-js@2.6.4
npm ERR! node_modules/@microsoft/applicationinsights-angularplugin-js
npm ERR! @microsoft/applicationinsights-angularplugin-js@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants