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.

Jung Chun
  • 191
  • 13

1 Answers1

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

Matt Swezey
  • 1,246
  • 6
  • 13