-
Notifications
You must be signed in to change notification settings - Fork 312
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
Cannot find module 'graphql-request/build/esm/types' or its corresponding type declarations.ts #635
Comments
I tried with v7-next too, the problem is still there. A workaround is to remove the |
Likely what is happening here is that SvelteKit is respecting the You should not be importing from a subpath of the module, instead import it directly from the module itself: import { GraphQLResponse } from 'graphql-request'; |
Dear @jonkoops, please reopen this issue. I tried everything, also the import you suggest: import { GraphQLResponse } from 'graphql-request'; It's always an error! |
Hmm, yeah you are right. It looks like we're currently not exporting these types. Re-opening. |
As I wrote:
|
I'd rather fix the bug honestly. |
Yeah, me too, but I don't know how. |
This will be fixed by #636 |
@jonkoops Are you going to release this in a patch version? |
No, this will be part of the next major version. You can install the |
This is still happening on v 7.0.1 release a couple days ago |
Are you importing from |
You're hitting this #845, it's a problem with your setup, not the library. I'll try to document it soon. PR welcome. |
Upgrading today from
"@sveltejs/kit": "1.30.0"
to"@sveltejs/kit": "2.0.0"
and deletingnode_modules
andpackage-lock.json
, if I runnpm install
on typescript check I get:Cannot find module 'graphql-request/build/esm/types' or its corresponding type declarations.ts (2307)
Why?
What should I use for this?
The text was updated successfully, but these errors were encountered: