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

Apollo composables not working #363

Closed
ruslansteiger opened this issue Oct 19, 2020 · 5 comments
Closed

Apollo composables not working #363

ruslansteiger opened this issue Oct 19, 2020 · 5 comments

Comments

@ruslansteiger
Copy link

ruslansteiger commented Oct 19, 2020

Version

v4.0.1-rc.4
@nuxtjs/composition-api@0.13.5
@vue/apollo-composable@4.0.0-alpha.12

Reproduction link

https://github.com/SuddenlyRust/nuxt-apollo-composables

Steps to reproduce

yarn dev

visit http://localhost:3000/

What is expected ?

Working application without error messages

What is actually happening?

ReferenceError: define is not defined is shown

bug.png

Additional Information

With @vue/apollo-composable@4.0.0-alpha.10 this error message is not shown.

This bug report is available on Nuxt community (#c340)
@jankaderabek
Copy link

I have the same issue. Any idea how to fix this?

@seanaye
Copy link

seanaye commented Nov 20, 2020

I am getting same issue. Is downgrading to alpha 10 the only known fix?

EDIT: This is an issue with vue-apollo-composable not the nuxt-apollo module. I am not using nuxt and am receiving the exact same error

@seanaye
Copy link

seanaye commented Nov 20, 2020

The root of the issue is vuejs/apollo#1081

@YankeeTube
Copy link

@seanaye alpha 10 same issue

@ruslansteiger
Copy link
Author

Got it working with the transpilation workaround: vuejs/apollo#1081 (comment)

Check out my commit: ruslansteiger/nuxt-apollo-composables@e09bce7

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

4 participants