React native: Veramo requires @mattrglobal/node-bbs-signatures which does not compile on RN (without expo)
See original GitHub issueBug severity 3
Describe the bug Trying to get Veramo running on React native, getting `Error: Unable to resolve module @mattrglobal/node-bbs-signatures`` Tried installing it explicit, but then it fails to compile with call to undefined module
To Reproduce Steps to reproduce the behaviour:
- Clone branch veramoProvider https://github.com/symfoni/identity-wallet/tree/veramoProvider
- npm install
- npm run ios
- See error: Error: Unable to resolve module @mattrglobal/node-bbs-signatures
- npm i @mattrglobal/node-bbs-signatures --save
- See error:
Error: Requiring unknown module "undefined". If you are sure the module exists, try restarting Metro. You may also want to run
yarnor
npm install. VeramoProvider@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.identityWallet:263487:41 ContextProvider@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.identityWallet:139237:41
See image below.
Observed behaviour A clear and concise description of what you observe.
Expected behaviour Could BBS-signatures be optional? Else, any had this issue before and a way to either get it working or circumvent it for now.
Details Error without BBS signatures Error after installing BBS signatures
Versions (please complete the following information):
-
“@veramo/credential-w3c”: “^2.1.0”, “@veramo/data-store”: “^2.1.0”, “@veramo/did-jwt”: “^2.1.0”, “@veramo/did-manager”: “^2.1.0”, “@veramo/did-provider-ethr”: “^2.1.0”, “@veramo/did-provider-key”: “^2.1.0”, “@veramo/did-resolver”: “^2.1.0”, “@veramo/key-manager”: “^2.1.0”, “@veramo/kms-local”: “^2.1.1”, “@veramo/message-handler”: “^2.1.0”, “@veramo/selective-disclosure”: “^2.1.0”,"@veramo/core": "^2.1.0",
- “react-native”: “0.64.1”,
- “rn-nodeify”: “^10.3.0”,
- “node-libs-react-native”: “^1.2.1”,
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Building React Native Apps — Expo or not?
1. Fastest way to build React Native Apps · 2. You don't need to know Native Mobile coding · 3. No Xcode, No...
Read more >react native project not build on MacBook M1 - expo
I found one solution. Firstly I clean project and install everything again, then start building. Commands: watchman watch-del-all && rm -rf ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are useing @veramo/did-provider-key for some services and without it we cant resolves does DIDs in the react native client. So its actually a blocker for us.
We could port those services to Ethr, but have a problem there as described in https://github.com/uport-project/veramo/issues/677
This is strange. That dependency should not be required in this version of veramo.
Can you list the dependencies and devdependencies you have in package.json?Nevermind, I saw you linked your source. We’ll take a look