question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Typescript error when using @microsoft/applicationinsights-web 2.5.0 and "noImplicitAny"/"strict" option

See original GitHub issue

Description/Screenshot There is a Typescript error when using @microsoft/applicationinsights-web version 2.5.0 of and “noImplicitAny”/“strict” option configured in tsconfig.json. image

Steps to Reproduce Use @microsoft/applicationinsights-web with version 2.5.0 and add “noImplicitAny”/“strict” option to “true” in tsconfig.json.

Expected behavior No error

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MSNevcommented, Mar 5, 2020

I’m adding noImplicitAny to the standard build config and fixing the breaks, however, adding strict is a very large issue, so not doing that now. Based on the error you are getting, I believe that this will unblock you once we republish with the fix

1reaction
MSNevcommented, Mar 5, 2020

Investigating to see if we can enable this…

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript error “TS2354: This syntax requires an ... - GitHub
When trying to run tsc, I get the following error message but tslib should be available. $ tsc --noEmit --project ./tsconfig.json index.js:3:8 - ......
Read more >
TypeScript error TS1005: ';' expected (II) - Stack Overflow
Your installation is wrong; you are using a very old compiler version (1.0.3.0). tsc --version should return a version of 2.5.2.
Read more >
Documentation - TypeScript 4.4
When we pass an object literal to something with an expected type, TypeScript will look for excess properties that weren't declared in the...
Read more >
Announcing TypeScript 4.5 - Microsoft Developer Blogs
When you use static types, you can run the TypeScript compiler to check for bugs like typos and mismatches in the shapes of...
Read more >
TypeScript errors and how to fix them
error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier. Broken Code ❌. index.d ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found