apollo
apollo copied to clipboard
[ReferenceError]: define is not defined
Describe the bug I don't know why but when I upload to the version @vue/apollo-composable@^4.0.0-alpha.12, it's crash the app. Then I reproduce a repo to this issue.

To Reproduce Steps to reproduce the behavior:
- Clone this repo 'https://github.com/harrytran998/nuxt-ts-graphql-issues'
- Run
yarn && yarn devto see the issue
Expected behavior Hope you can fix that, my team risky to use this for production 🔥.
Versions
"@nuxt/typescript-runtime": "^2.0.0",
"@nuxtjs/apollo": "^4.0.1-rc.4",
"@nuxtjs/composition-api": "^0.13.5",
"@vue/apollo-composable": "^4.0.0-alpha.12",
"apollo-cache-inmemory": "^1.6.6",
"graphql": "^15.3.0",
"nuxt": "^2.14.7",
Additional context Add any other context about the problem here.
Same error here as well
Why was this issue closed? I am getting the same result
@Petercopter and @seanaye this was a related issue that's still open and looks to be fixed soon: https://github.com/vuejs/vue-apollo/issues/1081
I just reverted back to @vue/[email protected] for now.
Hope this helps
Any update or workarround on this issue ? I am using nuxt and I still have the issue.
The workarround provided in #1081 is only for jest.
Actually, this issue related to https://github.com/vuejs/vue-apollo/issues/1081. And like @toddheslin said, should use @vue/[email protected]. If anyone wants to use some new method, you can self-implement it = look for it in the code base.