-
Notifications
You must be signed in to change notification settings - Fork 114
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 import .graphql files #188
Comments
GraphQL-Modules doesn’t have a feature like this. You have to use other libraries to handle graphql files like this |
Brilliant! That's working well. Thank you very much. |
Hello, I followed the documentation to import files from .graphql files, this works well in development but when building it seems to not build .graphql files and when I run npm start there is this error:
My scripts
|
@yalamber Because your graphql files are still in the source file directory, you need to copy them to the output folder. |
For anyone who came across this issue of not finding |
Hello!
I have been trying to use TypeScript to import .graphql files, by using the method mentioned here, however, I consistently receive the error:
I have tried placing the
typings.d.ts
file within the same directory as the .graphql file, at thesrc
level, at the project root. None have altered a single thing. It's as if TS isn't even seeing the .d.ts file.Here is the tsconfig:
I have found this related issue, but despite trying all listed solutions, I have not been able to resolve the error.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: