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.

Type Error in NodeHttpRequestTelemetry.d.ts

See original GitHub issue

TSC 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:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
OsvaldoRosadocommented, Oct 9, 2018

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:

{
    "compilerOptions": {
...
        "skipLibCheck": true
    }
}
0reactions
OsvaldoRosadocommented, Nov 19, 2018

This should be fixed now with version 1.0.7

Read more comments on GitHub >

github_iconTop 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 >

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