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

Unable to resolve "multiformats/bases/base64" in React Native #38

Open
iamnijat opened this issue Oct 13, 2023 · 0 comments
Open

Unable to resolve "multiformats/bases/base64" in React Native #38

iamnijat opened this issue Oct 13, 2023 · 0 comments

Comments

@iamnijat
Copy link

iamnijat commented Oct 13, 2023

Description

When attempting to run my React Native application, I encountered a resolution error related to "multiformats/bases/base64" emanating from the "@decentralized-identity/ion-sdk" dependency.

Issue Details

Upon executing my React Native project, the following error message is displayed:

The error occurs when using the IonDid method from the SDK as shown in the code snippet below:

import { IonDid } from "@decentralized-identity/ion-sdk";

const did = await IonDid.computeDidUniqueSuffix({
    requestID: 2212
});

Steps to Reproduce

  1. Install "@decentralized-identity/ion-sdk" using npm or yarn.
  2. Import and utilize the SDK in a React Native project.
  3. Use the IonDid method as shown in the code snippet above.
  4. Run the project using the React Native CLI or through a platform like Expo.
  5. Observe the aforementioned error message.

Expected Behavior

The expected behavior is for the application to resolve all modules and dependencies without issue and launch without encountering resolution errors related to "multiformats/bases/base64".

Actual Behavior

An error message is displayed, preventing the successful launch of the application:
Unable to resolve "multiformats/bases/base64" from "node_modules/@decentralized-identity/ion-sdk/dist/lib/IonKey.js"

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

1 participant