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

How to get this running in Node #198

Open
alessioalex opened this issue Feb 19, 2017 · 5 comments
Open

How to get this running in Node #198

alessioalex opened this issue Feb 19, 2017 · 5 comments

Comments

@alessioalex
Copy link

Hey there, how do I get this up and running with Node 6?

I'm getting this error:

ReferenceError: regeneratorRuntime is not defined

Thanks.

@walleXD
Copy link

walleXD commented Jun 8, 2017

@alessioalex you have to include babel polyfill as well as using appropriate babel presets to handle async/await. Check out this this node6 es6 preset

@josephrexme
Copy link

Same question I had here. Why not support promises as well and give option for async/await. Haven't used babel so far for this project and I shouldn't have to just for a simple API call. Any alternatives?

@STRML
Copy link

STRML commented Sep 17, 2017

FWIW, with Node 8 well-established and with it, async/await, this lib should also expose either a Node8-compatible version, or something compiled down to promises with e.g. nodent.

@alessioalex
Copy link
Author

Still can't get this running in Node:

 node
> a = require('@r/api-client')
Error: Cannot find module 'lodash/array'

I don't thinking including some babel polyfill is the way to go.

@mayeaux
Copy link

mayeaux commented Jul 8, 2019

+1 , surprising async/await isn't supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants