Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import in module fails due to default export #4

Open
F-Node-Karlsruhe opened this issue Sep 14, 2023 · 1 comment
Open

Import in module fails due to default export #4

F-Node-Karlsruhe opened this issue Sep 14, 2023 · 1 comment

Comments

@F-Node-Karlsruhe
Copy link

When doing import SD from '@transmute/vc-jwt-sd' the default export returns an object like so {default: SD}

the current import into an ES2022 module can only be done like so:

import SD from '@transmute/vc-jwt-sd';
const vcjwtsd = (SD as any).default;
@OR13
Copy link
Member

OR13 commented Feb 3, 2024

Yes, thank you for pointing this out, the next version will not have default export at the top level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants