Skip to content

Unable to resolve module node:crypto #1315

@Megha7493

Description

@Megha7493

SDK

React-Native

Provide environment information

My React Native version is
"react-native": "0.73.6",

MetaMask SDK Version

"@metamask/sdk-react": "^0.33.0"

MetaMask Mobile app Version

..

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

error: Error: Unable to resolve module node:crypto from /Users/meghawalia/Desktop/AwesomeProject/node_modules/@metamask/sdk-react/dist/react-native/es/metamask-sdk-react.js: node:crypto could not be found within the project or in these directories: node_modules

Expected Behavior

App is crashing

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

No response

To Reproduce

executed - "npm run android" cmd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions