How to get this running in Node
Hey there, how do I get this up and running with Node 6?
I'm getting this error:
ReferenceError: regeneratorRuntime is not defined
Thanks.
@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
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?
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.
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.
+1 , surprising async/await isn't supported