Applicationinsights-js: [BUG] applicationinsights-web npm package does not have types or a types folder.

Created on 9 Mar 2021  路  2Comments  路  Source: microsoft/ApplicationInsights-JS

reproduce:

npm i --save @microsoft/applicationinsights-web

navigate to node_modules/@microsoft/applicationinsights-web

no types folder with typings. other folders have it. wondering why this project is missing typings?

is there a workaround or some other typings i can point to?

bug build-issue released - NPM

All 2 comments

There are a couple of issues here

  • The types are actually (currently) being generated in the dist-esm folder (so they are present)
  • The package.json is pointing the the types folder (just like all of the others -- looks like a copy paste issue)

Solutions

  • try referencing the dist-esm folder (will fix this as part of this issue)
  • As part of the next release we are now generating complete (single file) *.d.ts as part of the fix for #1473

Will keep this issue open to "fix" the package.json reference and where the files are being dropped.

v2.6.0 is now fully deployed to all CDN endpoints

Was this page helpful?
0 / 5 - 0 ratings