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

[edge] Uncaught ReferenceError: require is not defined when using @nuxtjs/apollo #3892

Closed
Vlaoff opened this issue Sep 15, 2018 · 3 comments
Closed

Comments

@Vlaoff
Copy link

Vlaoff commented Sep 15, 2018

Version

nuxt-edge

Reproduction link

https://github.com/Vlaoff/apollonuxt

Steps to reproduce

I get the error when I launch nuxt and open it in the browser

What is expected ?

I should not have this error

What is actually happening?

I think it's a problem with the babel/wepack configuration.

Additional comments?

It does not occur on nuxt 1.4.2, only on the nuxt-edge 2.0.0-xxx (could not select the correct version on cmty.app)

I don't know if the problem is from @nuxtjs/apollo or nuxt. But as it does not occur on the nuxt stable branch, I submit it here

This bug report is available on Nuxt community (#c7745)
@aldarund
Copy link

@Vlaoff it seems that something off with graphql 0.13.2 . Nuxt edge have mjs support enabled, and it dont play with with graphql 0.13.2. So its dont seem like a nuxt problem.
You could try to set grapqhl to 14.0.2 and it will make the error go away, although there will be complains about not meet requirements and not sure if it wont break anything.

@manniL manniL closed this as completed Sep 17, 2018
@ghost
Copy link

ghost commented Sep 17, 2018

This bug-report has been cancelled by @manniL.

@lock
Copy link

lock bot commented Oct 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants