Closed lustremedia closed 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?
Unfortunately, that's inheriting from the graphql-request package, try to transpile nuxt-graphql-request in your nuxt.config.ts:
graphql-request
nuxt-graphql-request
nuxt.config.ts
build: { transpile: ['nuxt-graphql-request'], },
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?