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] DOM libs are undefined (v3.1.2)

See original GitHub issue

When installing cross-fetch v3.1.3, it somehow overrides the typescript settings. Despite having dom in lib in the tsconfig, Typescript starts to complain about e.g. window and URLSearchParams. If I downgrade to v3.1.2, it does not happen. Maybe you have an idea, why cross-fetch somehow overrides “everything” (?)

I’m using it with nextjs (latest version)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:15
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
pbeyelercommented, Mar 31, 2021

We’re having the exact same problem. Would be great if this could be solved as soon as possible.

2reactions
lquixadacommented, Apr 2, 2021

just released 3.1.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Documentation - DOM Manipulation - TypeScript
Inspecting the variable shows it is defined by the Document interface from the lib.dom.d.ts file. The code snippet contains calls to two methods,...
Read more >
DOM Enlightenment - Exploring the relationship between ...
The purpose of the DOM is to provide a programatic interface for scripting (removing, adding, replacing, eventing, modifiying) this live document using ...
Read more >
jQuery.noConflict() | jQuery API Documentation
Many JavaScript libraries use $ as a function or variable name, ... 3. 4. 5. 6. 7. 8. // Do something with the...
Read more >
Chapter 13 JavaScript Libraries - Client-Side Web Development
Importantly, script files are executed in the order in which they appear in the DOM. This matters because all scripts included via the...
Read more >

github_iconTop Related Medium Post

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