Support use in graphql-let
See original GitHub issueWould be nice if this could support graphql-let.
I’ve added the issue to both projects since at this point I don’t know which library should be the one to handle this.
Generates the following error:
Plugin "typed-document-node" validation failed:
Found 1 error
✖ <redacted>/node_modules/graphql-let/__generated__/src/renderer/auth/graphql/documents.graphql.tsx
Plugin "typed-document-node" requires extension to be ".ts"!
Error: Plugin "typed-document-node" validation failed:
at executePlugin (<redacted>/node_modules/@graphql-codegen/core/index.cjs.js:31:19)
Error: Plugin "typed-document-node" validation failed:
at executePlugin (<redacted>/node_modules/@graphql-codegen/core/index.cjs.js:31:19)
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
piglovesyou/graphql-let: A webpack loader / babel-plugin ...
graphql -let generates types by default, where it uses the plugin. The plugins in .graphql-let.yml is for per-document, which imports the shared types ......
Read more >graphql-let - A Webpack loader for GraphQL Code Generator
It lets you directly import GraphQL documents and use GraphQL Code ... It's still partial support, but graphql-let provides a babel plugin ...
Read more >graphql-let - npm
Start using graphql-let in your project by running `npm i graphql-let`. There is 1 other project in the npm registry using graphql-let.
Read more >Let GraphQL Code Generators do the boring stuff - Egghead.io
This talk will show you how you can let GraphQL code generators do the boring stuff. ... Here are all my personals and...
Read more >Compiling queries with Babel - Apollo GraphQL Docs
All of these approaches support the use of fragments. ... With babel-plugin-import-graphql , you can just include your fragment in your GraphQL file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It makes sense. I need we need to investigate it a bit more. Also, I think graphql-let uses
near-operation-file
preset, and the plugin for typed-document-node haven’t been tested for it yet. I can add support for.tsx
extensions, no problem 😉So far so good.
I can confirm that commenting out the types in
ApolloClient.d.ts
fixes the issue mentioned above. Unfortunately, I haven’t been able to figure out how to ignore them or work around them.Also, this issue seems related: https://github.com/microsoft/TypeScript/issues/36146