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

ReferenceError: regeneratorRuntime is not defined #150

Closed
0xdewy opened this issue Mar 7, 2019 · 2 comments
Closed

ReferenceError: regeneratorRuntime is not defined #150

0xdewy opened this issue Mar 7, 2019 · 2 comments

Comments

@0xdewy
Copy link

0xdewy commented Mar 7, 2019

I'm getting the following error when trying to run the example script.

/btc20node_modules/@ledgerhq/hw-transport-node-hid/lib/TransportNodeHid.js:1
ReferenceError: regeneratorRuntime is not defined
    at /btc20/node_modules/@ledgerhq/hw-transport-node-hid/lib/TransportNodeHid.js:86:50
    at /btc20/node_modules/@ledgerhq/hw-transport-node-hid/lib/TransportNodeHid.js:125:6
    at Object.<anonymous> (/btc20/node_modules/@ledgerhq/hw-transport-node-hid/lib/TransportNodeHid.js:202:2)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
@harshjv
Copy link
Member

harshjv commented Mar 7, 2019

Hey @kyledewy. Thank you for trying chainanstractionlayer!

This is because one of the dependencies is using old version of babel. We are tracking it here: LedgerHQ/ledgerjs#211 & LedgerHQ/ledgerjs#218

We have fixed this issue in the next release of chainabstractionlayer. You can install it using npm i @liquality/chainabstractionlayer@next.

Or, you can do npm install regenerator-runtime locally in your project.

Cheers!

@harshjv
Copy link
Member

harshjv commented Mar 7, 2019

We've just published 0.1.21 on npm with the fix. (npm i @liquality/chainabstractionlayer)

@harshjv harshjv closed this as completed Mar 7, 2019
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