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

Network error: regeneratorRuntime is not defined #65

Open
joncursi opened this issue Jun 5, 2017 · 1 comment
Open

Network error: regeneratorRuntime is not defined #65

joncursi opened this issue Jun 5, 2017 · 1 comment

Comments

@joncursi
Copy link

joncursi commented Jun 5, 2017

I've been using this library with great success on React Native, but when I try calling any of the mutations from a Meteor web app, I'm getting:

screen shot 2017-06-05 at 12 30 58 am

Any ideas on what I'm doing wrong? I've tried adding

import "regenerator-runtime/runtime";

to both client and server code, but the result is the same.

@joncursi
Copy link
Author

joncursi commented Jun 5, 2017

The solution seems to be:

global.regeneratorRuntime = require('regenerator-runtime/runtime');

on the client.

See: https://forums.meteor.com/t/regeneratorruntime-is-not-defined-after-upgrading-to-1-4-2-1/31335/3?u=joncursi

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

1 participant