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

how to fix "NullInjectorError: No provider for AppInsightsSku!" #2226

Open
WeizhouWang opened this issue Dec 14, 2023 · 2 comments
Open

how to fix "NullInjectorError: No provider for AppInsightsSku!" #2226

WeizhouWang opened this issue Dec 14, 2023 · 2 comments

Comments

@WeizhouWang
Copy link

try to add appInsights in an angular project following
https://software-ranjit.medium.com/how-to-integrate-azure-application-insights-to-an-angular-application-15ffff977cc6,
and get error:
NullInjectorError: No provider for AppInsightsSku!

What should I do?

Thanks

@MSNev
Copy link
Collaborator

MSNev commented Dec 14, 2023

This sounds like an angular configuration issue, where you have not registered the provide for application insights. That is beyond to general knowledge of our team.

Suggest that you ask a question of the author of the post you reference, or check that you haven't missed something. It may also be some sort of difference between the version on Angular that the author documented vs the version you are using.

@WeizhouWang
Copy link
Author

Thanks Nev,

It is because I imported wrong service. Now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants