electrode-native
electrode-native copied to clipboard
Transitive dependency issue when trying to add API via tutorial.
Repro steps
- Follow these getting started instructions, namely
-
$ ern create-miniapp MovieListMiniApp
-
$ cd MovieListMiniApp
-
$ ern add [email protected] [email protected]
Results in this error:
$ ern add [email protected] [email protected]
___ _ _ _ _ _ _ _
| __| |___ __| |_ _ _ ___ __| |___ | \| |__ _| |_(_)_ _____
| _|| / -_) _| _| '_/ _ \/ _` / -_) | .` / _` | _| \ V / -_)
|___|_\___\__|\__|_| \___/\__,_\___| |_|\_\__,_|\__|_|\_/\___|
[v0.38.7] [Cauldron: -NONE-]
✔ Syncing https://github.com/electrode-io/electrode-native-manifest.git Manifest 0s
✔ react-native-ernmovie-api-impl is not declared in the manifest. Performing additional checks. 1s
✖ An error occurred: [Transitive Dependency] [email protected] was not added to the MiniApp
Running on macOS. Looks the same as #956 but that one was closed.
FWIW, I was able to (finally) get my own version of the API implementation working by generating my own API and changing the dependency on react-native-electrode-bridge
to point explicitly to 1.5.19
. That fixed the issue for me.
"dependencies": {
"react-native-electrode-bridge": "1.5.19"
},
I then grabbed the schema.json
from the tutorial repo, and borrowed the JS implementation from the other repo, and I at last had a working example of the API system.