-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error TS2304: Cannot find name 'RequestInit'. #18
Comments
I was also having this problem and adding "dom" to "lib" in tsconfig fixed it! |
@csvenke That's definitely a solution client-side, but I'm trying to use this on node so I'd like to avoid adding a dependency on "dom". |
Temporary fix and not add "dom" to tsconfig: http-link-dataloader.d.ts declare type RequestInit = any |
Any update on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that this library requires adding
dom
to thetsconfig.json
compilerOptions.lib
list, which doesn't make sense when running on node. Fine, perhaps this library is only intending for frontend applications... but this library is also a dependency ofprisma-client-lib
which is necessary for server-side prisma applications. I'm kinda stumped as to how we're supposed to write prisma graphql servers in TypeScript with this setup...Here's the compile output in an end-user project that depends on
prisma-client-lib
:The text was updated successfully, but these errors were encountered: