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

assert could not be found within the project #3

Open
ghost opened this issue Dec 2, 2020 · 0 comments
Open

assert could not be found within the project #3

ghost opened this issue Dec 2, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 2, 2020

Hi,
I am facing this issue when trying to import these libraries:

import {
  JolocomSDK,
  JolocomTypeormStorage,
  JolocomKeychainPasswordStore,
} from 'react-native-jolocom'

Error message:

error: Error: Unable to resolve module `assert` from `node_modules/ethereumjs-util/dist/account.js`: assert could not be found within the project.

I came across ethereumjs-util/issues/92 issue, which is the exact error but still couldn't understand how to resolve it.
I was hoping if someone can assist me with this.

here is the detailed stack trace:

at ModuleResolver.resolveDependency (/home/harshit/jolo-new/myJolo/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:186:15)
at ResolutionRequest.resolveDependency (/home/harshit/jolo-new/myJolo/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (/home/harshit/jolo-new/myJolo/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
at Object.resolve (/home/harshit/jolo-new/myJolo/node_modules/metro/src/lib/transformHelpers.js:267:42)
at /home/harshit/jolo-new/myJolo/node_modules/metro/src/DeltaBundler/traverseDependencies.js:434:31
at Array.map ()
at resolveDependencies (/home/harshit/jolo-new/myJolo/node_modules/metro/src/DeltaBundler/traverseDependencies.js:431:18)
at /home/harshit/jolo-new/myJolo/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33
at Generator.next ()
at asyncGeneratorStep (/home/harshit/jolo-new/myJolo/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)

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

0 participants