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.

Compilation errors in typescript type definition?

See original GitHub issue

Expected behavior

That everything compiles in my angular 6 application.

Actual behavior

I get the following error after upgrading from v1.12.1 to v1.21.0

ERROR in node_modules/jquery.terminal/js/jquery.terminal.d.ts(324,54): error TS2344: Type 'TElement' does not satisfy the constraint 'Node'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(363,38): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(364,42): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(439,65): error TS2344: Type 'TElement' does not satisfy the constraint 'Node'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(465,41): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(467,38): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(487,38): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(488,42): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(500,38): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'. node_modules/jquery.terminal/js/jquery.terminal.d.ts(501,42): error TS2344: Type 'TElement' does not satisfy the constraint 'EventTarget'.

Browser and OS

Angular CLI: 6.1.3 Node: 8.11.3 OS: darwin x64 Angular: 6.1.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jcubiccommented, Aug 27, 2018

If you have @types/jquery installed try to update it.

0reactions
jcubiccommented, Sep 9, 2018

Version 1.22.0 with updated d.ts file just got released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Understanding Errors - TypeScript
Whenever TypeScript finds an error, it tries to explain what went wrong in as much detail as possible. Because its type system is...
Read more >
Typescript Compile Error in type definition files - Stack Overflow
After compilation with tsc I have tons of compile errors in type definition files. Example: typings/main/definitions/sinon/sinon.d.ts(436 ...
Read more >
TypeScript errors and how to fix them
error TS1337: An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead. Broken...
Read more >
Understanding TypeScript Errors for Beginners
How to relieve the cognitive overhead of compilation errors so you can ... But in TypeScript (which is more of a static type...
Read more >
Type-Safe Error Handling In TypeScript - DEV Community ‍ ‍
The compiler is no longer able to tell you whether your code is safe from runtime errors. In other words, using throw is...
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