Closed Kameecoding closed 1 year ago
So I managed to find in the source code that this module already sets up the graphql-tag transpiling, removing my own transpiling from my nuxt.config solved the issue, I think it would be good to explicitly mention this in the readme.
I am trying to add this module to slowly replace the graphql-apollo client we have in our stack.
However I am getting stuck with the graphql-tag loader breaking when this module is added for some reason.
Webpack is configured to transpile graphql files
If I only use graphql-request then everything works as expected I can use the query imported from a graphql file to make a request
when I try to add
nuxt-graphql-request
I get the error:This error is especially baffling because we don't even have 'var' basically anywhere in the code base, only in CSS
I tried all sorts of combos, using it as dev/prod dependency, registering as module instead of buildModule, nothing works.