Replies: 2 comments
-
As per the readme, there's an alias package and instructions and how to use it here: https://github.com/0no-co/graphql-web-lite Also, you'll want to point your GraphQL Code Generator at |
Beta Was this translation helpful? Give feedback.
-
@kitten thanks for response! I've read the instructions carefully and implemented the Next.js guide. Just tried to point the I'm already using BTW, in the Is it that better? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@kitten Sorry for the dummy question, maybe I misunderstood something.
I'm using
urql
in my Next.js application and want to reduce my bundle using this package.I noted that i'm still loading both
graphql
andgraphql.web
I followed a guide to setup webpack alias for
graphql
package in client bundle. After that, I started receiving following errors for all of my client-side queries.The files generated by
graphql-codegen
contains imports of gql utility fromgraphql-tag
, which depends ongraphql
and seems like it's not working with agraphql.web
replacement.What I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions