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.

RequestInit is not defined in typescript typings

See original GitHub issue

Thanks for this amazing project! Loving it! A small detail:

When using apollo-client in typescript the RequestInit is not defined. It also references the graphql library which typings is not a part of the project.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

17reactions
lednhatkhanhcommented, Feb 9, 2018

Why close this, I’m facing this problem and I don’t want to include dom lib to my server project

11reactions
monolithedcommented, Oct 8, 2017

Here is my solution:

"lib": [
	"dom",
	"es2017",
	"esnext.asynciterable"
]
Read more comments on GitHub >

github_iconTop Results From Across the Web

RequestInit | typescript - v3.7.7
A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's...
Read more >
Cannot find name 'Headers', 'RequestInit', 'Response'
ts(19,66): error TS2304: Cannot find name 'Response'. I don't understand why, because I think I'm not using this modules in my project. Thanks!...
Read more >
The starting point for learning TypeScript
Find TypeScript starter projects: from Angular to React or Node.js and CLIs.
Read more >
TypeScript Types - Rest Hooks
Represents a function that does actual fetch. Convenient type to specify only part of the function's type. export type FetchFunction ...
Read more >
node-fetch Error [ERR_REQUIRE_ESM]: require() of ES ...
node-fetch Error [ERR_REQUIRE_ESM]: require() of ES Module not supported ... Do this if using TYPESCRIPT import { RequestInfo, RequestInit } from ...
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