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.

Typescript build error : v5.7.0

See original GitHub issue

Hello i got some strange compilation error on node only project :

node_modules/@sentry/utils/dist/is.d.ts:64:51 - error TS2304: Cannot find name 'Event'.
64 export declare function isEvent(wat: any): wat is Event;
                                                     ~~~~~

node_modules/@sentry/utils/dist/is.d.ts:72:53 - error TS2304: Cannot find name 'Element'.
72 export declare function isElement(wat: any): wat is Element;
                                                       ~~~~~~~

node_modules/@sentry/utils/dist/misc.d.ts:89:48 - error TS2304: Cannot find name 'Node'.
89 export declare function htmlTreeAsString(elem: Node): string;

Version:

@sentry/node”: “^5.7.0”,

node : v10.16.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Fab-z4qxcommented, Oct 11, 2019

Ok, it’s working by removing the line lib.

Tanks you !!

0reactions
kamilogorekcommented, Oct 15, 2019

Fixed in 5.7.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >
Error: TSError: Unable to compile TypeScript - Stack Overflow
I had met same issue. First I remove ts-node and typescript from package.json . then, npm install ts-node --save-dev npm install typescript ......
Read more >
TS Playground - An online editor for exploring TypeScript and ...
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
Read more >
TypeScript configuration - Angular
TypeScript is a primary language for Angular application development. It is a superset of JavaScript with design-time support for type safety and tooling....
Read more >
ts-node - npm
It is important to differentiate between errors from ts-node, errors from the TypeScript compiler, and errors from node . It is also important ......
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