4

I wanted to deploy the contract with the Ledger Nano S wallet, but not working on truffle. I installed npm package 'truffle-ledger-provider' and followed the practice. But I got an error ReferenceError: regeneratorRuntime is not defined when I tried to deploy. I've searched google, but there was no good solution. Please help me.

3

1 Answer 1

0

Here's the fix. I just ran into this issue today.

// truffle-config.js
const regeneratorRuntime = require("regenerator-runtime");

Then install the NPM package: npm install regenerator-runtime

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.