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

React Native Expo build error #1583

Open
forbesus opened this issue Apr 23, 2024 · 0 comments
Open

React Native Expo build error #1583

forbesus opened this issue Apr 23, 2024 · 0 comments

Comments

@forbesus
Copy link

Hello everyone
I am getting above error

node_modules/@cosmjs/proto-signing/node_modules
node_modules
  33 | async function getCryptoModule() {
  34 |     try {
> 35 |         const crypto = await Promise.resolve().then(() => __importStar(require("crypto")));
    |                                                                                 ^
  36 |         // We get `Object{default: Object{}}` as a fallback when using
  37 |         // `crypto: false` in Webpack 5, which we interprete as unavailable.
  38 |         if (typeof crypto === "object" && Object.keys(crypto).length <= 1) {
Error: Unable to resolve module crypto from /home/expo/workingdir/build/node_modules/@cosmjs/proto-signing/node_modules/@cosmjs/crypto/build/pbkdf2.js: crypto could not be found within the project or in these directories:
  node_modules/@cosmjs/proto-signing/node_modules
  node_modules
  33 | async function getCryptoModule() {
  34 |     try {
> 35 |         const crypto = await Promise.resolve().then(() => __importStar(require("crypto")));
     |                                                                                 ^
  36 |         // We get `Object{default: Object{}}` as a fallback when using
  37 |         // `crypto: false` in Webpack 5, which we interprete as unavailable.
  38 |         if (typeof crypto === "object" && Object.keys(crypto).length <= 1) {
    at ModuleResolver.resolveDependency (/home/expo/workingdir/build/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:138:15)
    at DependencyGraph.resolveDependency (/home/expo/workingdir/build/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at /home/expo/workingdir/build/node_modules/metro/src/lib/transformHelpers.js:156:21
    at resolveDependencies (/home/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
    at visit (/home/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 4)
at async visit (/home/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
    at async Promise.all (index 0)
    at async visit (/home/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)```

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