Closed okdistribute closed 4 years ago
This is caused by having two copies of react. Most likely from using npm link locally? You need to symlink the react modules between the two modules you are linking. It’s a pain. No workaround other than manual sym link (that gets removed on npm install) or setting up mono repo.
On 28 Jan 2020, at 19:08, Karissa McKelvey notifications@github.com wrote:
Today, got this error on my branch https://github.com/digidem/react-mapfilter/pull/98 after fixing issues on v3. I don't know enough about hooks to debug this right now. @gmaclennan https://github.com/gmaclennan do you know why this is happening?
/home/okdistribute/n…development.js:1590 Uncaught 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:
Consider adding an error boundary to your tree to customize error handling behavior. Visit https://fb.me/react-error-boundaries to learn more about error boundaries. /home/okdistribute/n…timber/index.js:118 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:
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digidem/react-mapfilter/issues/99?email_source=notifications&email_token=AACG5GMCUYZQIL7TY43XDI3RAB7B3A5CNFSM4KMXVO32YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJKDYQQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACG5GLF27XASET5WPQBBK3RAB7B3ANCNFSM4KMXVO3Q .
ok thanks!
Today, got this error on my branch after fixing issues on v3. I don't know enough about hooks to debug this right now. @gmaclennan do you know why this is happening?