-
Notifications
You must be signed in to change notification settings - Fork 52
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
does not provide an export named 'default' #131
Comments
was using https://gitlab.com/gaia-x/gaia-x-community/gaia-x-catalogue/catalogue-prototyping which uses require() and package.json with "dependencies": { but i guess this is not working anymore because this is an esm only package now? |
I'm facing the same issue. @riebeb, were you able to make it work somehow? |
There isn't a default export anymore. You can pull in everything with: import * as vc from '@digitalbazaar/vc'; or just the functions you need like: import {issue, verifyCredential} from '@digitalbazaar/vc'; Looks like the README needs some updates. |
Great, thank you! @davidlehn |
import vc from '@digitalbazaar/vc';
^^
SyntaxError: The requested module '@digitalbazaar/vc' does not provide an export named 'default'
What am I missing? Thanks!
The text was updated successfully, but these errors were encountered: