DEV Community

Discussion on: Using Azure Application Insights with Angular (5/7)

Collapse
 
atlas361 profile image
Atlas361

I downloaded your Angular Demo from github.com/dmnk/application-insigh... and installed all the NPM packages and then ran the project but I get this error "ERROR TypeError: this.appInsights.loadAppInsights is not a function" from Line 19 in the app.component.ts file?

I would love to get this working and would appreciate any help! Thanks

Collapse
 
jdubois profile image
Julien Dubois

I understand you installed the packages, but did you write the code from the blog post? The first thing we do is defining the appInsights function, and given your error is looks like it is not yet in your code.
If that can help, you can see all the changes I did in my code in this commit: github.com/jdubois/spring-on-azure...