nicolaslopezj / meteor-apollo-accounts

Meteor accounts in GraphQL
MIT License
145 stars 35 forks source link

Network error: regeneratorRuntime is not defined #65

Open joncursi opened 7 years ago

joncursi commented 7 years ago

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 commented 7 years ago

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