-
-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
Description
Module resolution for the wallet-svelte-component library fails when run in strict Node.js environments (like Vitest tests). This is due to a missing file extension on a relative internal import in the package's distribution.
Location of Error
The error originates from node_modules/wallet-svelte-component/dist/index.js when attempting to import:
// Problematic import found in index.js:
import ... from './wallet/wallet-manager'; Proposed Fix
In strict ESM mode, the import must include the extension:
import ... from './wallet/wallet-manager.js';Error Output
Error: Cannot find module '.../node_modules/wallet-svelte-component/dist/wallet/wallet-manager' imported from .../node_modules/wallet-svelte-component/dist/index.js
Serialized Error: { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///.../dist/wallet/wallet-manager' }
Reactions are currently unavailable