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

regeneratorRuntime not defined in lib/fetchWithMiddleware.js #54

Closed
hannesj opened this issue Nov 11, 2017 · 2 comments
Closed

regeneratorRuntime not defined in lib/fetchWithMiddleware.js #54

hannesj opened this issue Nov 11, 2017 · 2 comments

Comments

@hannesj
Copy link

hannesj commented Nov 11, 2017

Currently the library crashes when trying to load it as regeneratorRuntime is not defined in lib/fetchWithMiddleware.js.

@nodkz
Copy link
Collaborator

nodkz commented Nov 11, 2017

It happens cause I upgrade a code with async/await syntax and now it starts to require regenerator runtime ((( It's sad.

So please use the previous version. Or temporary use such code:

import 'regenerator-runtime/runtime';
import { RelayNetworkLayer } from 'react-relay-network-modern';

For fixing this problem needs to convert async/await syntax back to Promises

@nodkz nodkz closed this as completed in 5a1970f Nov 14, 2017
@nodkz
Copy link
Collaborator

nodkz commented Nov 14, 2017

I reverted async/await back to Promises, so new version should work without regenerator-runtime.

Thanks for reporting!

hannesj added a commit to HSLdevcom/digitransit-ui that referenced this issue Nov 14, 2017
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

2 participants