electrode-native icon indicating copy to clipboard operation
electrode-native copied to clipboard

Transitive dependency issue when trying to add API via tutorial.

Open AndrewSouthpaw opened this issue 4 years ago • 1 comments

Repro steps

  1. Follow these getting started instructions, namely
  2. $ ern create-miniapp MovieListMiniApp
  3. $ cd MovieListMiniApp
  4. $ 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.

AndrewSouthpaw avatar Feb 15 '20 01:02 AndrewSouthpaw

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.

AndrewSouthpaw avatar Feb 16 '20 20:02 AndrewSouthpaw