libitx / txforge

Modern Bitcoin transaction builder, capable of supporting any non-standard and custom script type.
Apache License 2.0
63 stars 21 forks source link

Unable to Solve this --> SyntaxError: Cannot use import statement outside a module #20

Closed jsim77 closed 2 years ago

libitx commented 2 years ago

Either ensure your project is an ESM module by putting "module": true in package.json or don't use import statements, swap import { forgeTx } from 'txforge' to const { forgeTx } = require('txforge').

jsim77 commented 2 years ago

@libitx - My apology for the late reply and Yes! is working, thanks