[BUG] Typescript error when using @microsoft/applicationinsights-web 2.5.0 and "noImplicitAny"/"strict" option
See original GitHub issueDescription/Screenshot
There is a Typescript error when using @microsoft/applicationinsights-web
version 2.5.0
of and “noImplicitAny”/“strict” option configured in tsconfig.json.
Steps to Reproduce
Use @microsoft/applicationinsights-web
with version 2.5.0
and add “noImplicitAny”/“strict” option to “true” in tsconfig.json.
- OS/Browser: Windows 7
- SDK Version: 2.5.0
- How you initialized the SDK: npm install @microsoft/applicationinsights-web
Expected behavior No error
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Investigating to see if we can enable this…