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

[BUG] using this lib with expo web fails during bundling #158

Open
mirceanis opened this issue Jul 5, 2022 · 1 comment
Open

[BUG] using this lib with expo web fails during bundling #158

mirceanis opened this issue Jul 5, 2022 · 1 comment
Labels
bug Something isn't working pinned an issue that may take a while to fix and should not be closed automatically.

Comments

@mirceanis
Copy link
Member

./node_modules/ethr-did-resolver/lib/index.module.js 1083:45
Module parse failed: Unexpected token (1083:45)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|       if (typeof parsed.query === 'string') {
|         const qParams = new URLSearchParams(parsed.query);
>         blockTag = qParams.get('versionId') ?? blockTag;
| 
|         try {

Same as in decentralized-identity/did-jwt#236

Special care must be taken when qParams.get('versionId') returns 0 because that should not be interpreted as the latest block, but as the default DID document, before any updates.

@mirceanis mirceanis added the bug Something isn't working label Jul 5, 2022
@stale
Copy link

stale bot commented Sep 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 14, 2022
@mirceanis mirceanis added the pinned an issue that may take a while to fix and should not be closed automatically. label Sep 14, 2022
@stale stale bot removed the stale label Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned an issue that may take a while to fix and should not be closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant