Replies: 1 comment
-
This looks like an issue with how graphql-codegen is bundling your schema. There shouldn't be anything specific to subscriptions that causes issues. It doesn't look like you've shared how the codegen config imports the schema, or how the builder is set up. This looks to me like it could be some sort of an esm/cjs interop issue.
Try ensuring that you enable https://www.typescriptlang.org/tsconfig#esModuleInterop in your tsconfig (not sure if this will fix your issue, but that's my best guess) |
Beta Was this translation helpful? Give feedback.
-
how do i do urql codegen with subscriptions?
I use this plugin
https://pothos-graphql.dev/docs/plugins/smart-subscriptions
i get this message
Beta Was this translation helpful? Give feedback.
All reactions