Open blewater opened 3 years ago
It is the default export. For Javascript use:
import { default as TransportNodeMod } from '@ledgerhq/hw-transport-node-hid';
const TransportNodeHid = TransportNodeMod.default;
For typescript, the following hack would do unless addressed at the source:
// ./src based path
import TransportModule from '../node_modules/@ledgerhq/hw-transport-node-hid/lib/TransportNodeHid.js';
const transport = TransportModule.default;
Hi, I have tried with Node v14,15 in ubuntu, macos with the same results. I cannot run the basic example listed:
I see a similar closed issue #140 without a satisfying resolution.
from package.json:
Can you help us out to use the library? Thanks