Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReferenceError]: define is not defined #1085

Open
harrytran998 opened this issue Oct 22, 2020 · 5 comments
Open

[ReferenceError]: define is not defined #1085

harrytran998 opened this issue Oct 22, 2020 · 5 comments

Comments

@harrytran998
Copy link

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.

image

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo 'https://github.com/harrytran998/nuxt-ts-graphql-issues'
  2. Run yarn && yarn dev to 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.

@Petercopter
Copy link

Same error here as well

@seanaye
Copy link

seanaye commented Oct 30, 2020

Why was this issue closed? I am getting the same result

@toddheslin
Copy link

@Petercopter and @seanaye this was a related issue that's still open and looks to be fixed soon: #1081

I just reverted back to @vue/[email protected] for now.

Hope this helps

@leo91000
Copy link

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.

@harrytran998 harrytran998 reopened this Jan 17, 2021
@harrytran998
Copy link
Author

Actually, this issue related to #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants