jolocom/react-native-jolocom

`assert` could not be found within the project

Opened this issue · 0 comments

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)