You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeviceSdk is completely unused so shouldn't be in that code snippet and DeviceSdkBuilder doesn't even exist.
I assume DeviceSdkBuilder should be replaced with DeviceManagementKitBuilder import.
But even when correcting it, the library is unusuable and breaks the application breaks with:
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '<home>/node_modules/@ledgerhq/device-management-kit/lib/esm/src' is not supported resolving ES modules imported from <home>/node_modules/@ledgerhq/device-management-kit/lib/esm/index.js
at finalizeResolution (node:internal/modules/esm/resolve:251:11)
at moduleResolve (node:internal/modules/esm/resolve:913:10)
at defaultResolve (node:internal/modules/esm/resolve:1037:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:650:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:599:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:582:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:241:38)
at ModuleJob._link (node:internal/modules/esm/module_job:132:49)
Expected behavior
Documentation should be correct and imports should not break the application
Additional context
No response
The text was updated successfully, but these errors were encountered:
Impacted Library name
@ledgerhq/device-management-kit
Impacted Library version
0.5.1
Describe the bug
As can be seen in the screenshot, the basic example on https://developers.ledger.com/docs/device-interaction/beginner/init_dmk imports three different imports.
DeviceSdk is completely unused so shouldn't be in that code snippet and
DeviceSdkBuilder
doesn't even exist.I assume
DeviceSdkBuilder
should be replaced withDeviceManagementKitBuilder
import.But even when correcting it, the library is unusuable and breaks the application breaks with:
Expected behavior
Documentation should be correct and imports should not break the application
Additional context
No response
The text was updated successfully, but these errors were encountered: