Type Error in NodeHttpRequestTelemetry.d.ts
See original GitHub issueTSC is giving the following error [ts] Namespace '"http"' has no exported member 'ServerRequest'. in /applicationinsights/out/Declarations/Contracts/TelemetryTypes/NodeHttpRequestTelemetry.d.ts
export interface NodeHttpRequestTelemetry extends Telemetry {
//....
request: http.ServerRequest; //<-- Error is here
//....
}
Application Insights Version: 1.0.5 NodeJS Version: 10.10.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Typescript doesn't throw error in .d.ts files - Stack Overflow
I have a *.d.ts files with the following content. declare var a: SomeType;. I have not declared a type named SomeType anywhere, still, ......
Read more >Developers - Type Error in NodeHttpRequestTelemetry.d.ts -
Type Error in NodeHttpRequestTelemetry.d.ts. ... TSC is giving the following error [ts] Namespace '"http"' has no exported member 'ServerRequest'. in ...
Read more >Troubleshooting | ts-node - TypeStrong · GitHub
This error is thrown by node when a module is require() d, but node believes it should execute as native ESM. This can...
Read more >applicationinsights @ 1.0.6 .. 1.3.1 - Package Diff
+ * A TypeError is triggered by cls-hooked for node [8.0, 8.2) ... out/Declarations/Contracts/TelemetryTypes/NodeHttpRequestTelemetry.d.ts. @@ -8,7 +8,7 @@.
Read more >Documentation - Modules .d.ts - TypeScript
When the ES Module-like syntax doesn't provide enough tools to describe the exports then you can use namespaces . For example, you may...
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 Free
Top 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

Another workaround is to not attempt to typecheck the SDK’s internal d.ts files. You can do this by specifying the following in your tsconfig.json:
This should be fixed now with version 1.0.7