Forum Discussion

safalkishore's avatar
safalkishore
Microsoft Employee
6 years ago
Solved

Application Insights (External NPM Dependency): Error packaging

We tried to add the App Insights (https://www.npmjs.com/package/applicationinsights) npm package to our custom visual in order to track all logs/events from the same. However we ran into issues (sho...
  • safalkishore's avatar
    6 years ago

    Application Insights has mutiple NPM package versions for the WEB. The one shown above is primarily meant for a NODE SERVER applciation, as it has built in capability to show LIVE METRICS etc.

     

    The 'PBIVIZ' package ingternally uses WEBPACK to bundle, and hence with the original NPM package we ran into mutiple issues as it has a dependency of plenty of packages.

     

    What we ended up using is the App Insights for Web - https://github.com/microsoft/ApplicationInsights-JS

     

    We simply followed sample on the above GITHUB page above and we were able to set it up.