Gomah / nuxt-graphql-request

Easy Minimal GraphQL client integration with Nuxt.js.
https://nuxt-graphql-request.vercel.app
MIT License
196 stars 16 forks source link

Once again I run into this blocking issue #55

Closed lustremedia closed 1 year ago

lustremedia commented 1 year ago

Uncaught SyntaxError: ambiguous indirect export: default [index.ts:36:7] (http://localhost:3000/_nuxt/node_modules/graphql-request/src/index.ts)

I am porting a project from nuxt 2 to nuxt 3, and there might be some syntax issues on my part ... but why is the error thrown here exactly?

Gomah commented 1 year ago

Unfortunately, that's inheriting from the graphql-request package, try to transpile nuxt-graphql-request in your nuxt.config.ts:

 build: {
    transpile: ['nuxt-graphql-request'],
  },