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

Creating a development setup #52

Open
tgmof opened this issue Jan 1, 2021 · 0 comments
Open

Creating a development setup #52

tgmof opened this issue Jan 1, 2021 · 0 comments

Comments

@tgmof
Copy link

tgmof commented Jan 1, 2021

The readme doesn't contain detailed instructions on how to easily test and contribute.
Since it is packaged for npm, it would be great to have a quick setup that uses this package as a local dependency so that the code can be quickly tested.
I created a local setup to contribute with "react-globe": "file:../../react-globe", in my dependencies but this always leads to this error:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app
    See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

The only way I can test is to commit the code, push and setting the dependencies as:
"react-globe": "git+https://github.com/.../react-globe.git#<commit-id>"

How is your development setup so that I can contribute smoothly?
NB: docz build seems broken making me unable to generate the doc automatically

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