-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Getting "Warning: Invalid hook call." when using locally in App due to double React #302
Comments
@jnachtigall Thanks for reporting the issue. can you share the repo details where this issue can be reproduced. |
No, the repo is private. But it is easy to reproduce:
|
Are you trying to contribute back to the project or you want to customize and use it back in your project. If its for the later reason, then its ideal to make changes on the main repo first. |
Describe the bug
I use the library locally so I can make a few changes. This way I hit this error: https://stackoverflow.com/questions/56021112/react-hooks-in-react-library-giving-invalid-hook-call-error/57422196
The
package.json
hasreact-chrono/package.json
Lines 39 to 41 in 9c7bc09
and the rollup config has
react-chrono/rollup.config.mjs
Line 54 in 9c7bc09
The problem is that the
package.json
also has these dependencies too:react-chrono/package.json
Lines 94 to 95 in 9c7bc09
These last lines should be deleted and only peerDependencies used.
BTW:
There is also
react-chrono/package.json
Line 96 in 9c7bc09
But
react-is
does not seem to be used anywhere.The text was updated successfully, but these errors were encountered: