graffle: V8. Types generation error: Cannot find package 'es-toolkit'
Description
When running pnpm graffle --schema my_url following error is thrown:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'es-toolkit' imported from /node_modules/.pnpm/graffle@8.0.0-next.78_graphql@16.9.0/node_modules/graffle/build/generator/generators/MethodsSelect.js
Same for @opentelemetry/api
Version: 8.0.0-next.78
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 31 (19 by maintainers)
Thanks for all the feedback @ziimakc, you helped me find a major flaw in Graffle (it assumed the names of the root types). There are things I still want to improve with introspection and feedback the user gets but in general the base functionality is now in place:
@jasonkuhrt you can run this gql server with any simple schema to reproduce issue: https://async-graphql.github.io/async-graphql
Not sure you know yet but Graffle has a document builder that I personally prefer. That interface needs its own generator. If you are not using the document builder you do not need to use the Graffle generator.
Let me know if this was not clear to you, as the documentation should achieve that.
I recently rewrote the getting started guide. Here is where document builder gets introduced: https://graffle.js.org/guides/getting-started#🧙-meet-document-builder.
Will send you introspection later, it does work fine for requests made by graphiql web sandbox.
This is the plugin that I was using for getting types when using graphql-request.