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

Transitive dependency issue when trying to add API via tutorial. #1485

Open
AndrewSouthpaw opened this issue Feb 15, 2020 · 1 comment
Open

Comments

@AndrewSouthpaw
Copy link

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
Copy link
Author

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.

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

1 participant