You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimally, I would be using the ES6 import module and not require, as well as be on v3.0.0 of Application Insights. Though being on v2.9.5 is okay as well for the time being while other issues get resolved.
Any guidance would be much appreciated.
Thanks
The text was updated successfully, but these errors were encountered:
@c-amunir Thank you for bringing this to my attention. I've tested the 3.0.1 release with import syntax and it should work. Please give the updated package a try and let me know. Thank you!
I am trying to import application insights into a project that uses ES6.
I have the following code:
Here's the error I am getting:
TypeError: Cannot read properties of undefined (reading 'trackEvent')
I am using node.js v18.20.2 (LTS).
I tried to use applicationinsights v3.0.0 but I was getting the same issues as Issue 1310
I ended up having to do 2 fixes:
Optimally, I would be using the ES6 import module and not
require
, as well as be on v3.0.0 of Application Insights. Though being on v2.9.5 is okay as well for the time being while other issues get resolved.Any guidance would be much appreciated.
Thanks
The text was updated successfully, but these errors were encountered: