Guillermo Rodas
Google Developer Expert in Web Technologies, Community Organizer, and Online Teacher.
@glrodasz
Google Developer Expert in Web Technologies
Community Organizer and Online Teacher
https://guillermorodas.com
@glrodasz
You can Google me as well.
EXTERNAL SEARCHING
Identifying the problem
Searching in Google
Searching in GitHub
INTERNAL SEARCHING
Searching in your code
Searching in your chat
Searching in your docs
Identifying the problem
Searching in Google
Searching in GitHub
or project's issues
Searching in your code
Searching in your chat
Searching in your docs
The first one is a components library project that has React as a dependency.
The second one is a web project that also has React as a dependency but at the same time, the components project is a dependency as well.
Everything works perfectly when I run the web project as usual, but when I do a local linking using npm link or yarn link I got the following error:
Unhandled Runtime 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:
Facts:
By Guillermo Rodas
Google Developer Expert in Web Technologies, Community Organizer, and Online Teacher.