@glrodasz
Google Developer Expert in Web Technologies
Community Organizer and Online Teacher
https://guillermorodas.com
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
https://www.scalyr.com/blog/javascript-stack-trace-understanding-it-and-using-it-to-debug/
https://lucasfcosta.com/2017/02/17/JavaScript-Errors-and-Stack-Traces.html
https://stackoverflow.com/a/3988794/1360383
https://www.digitalocean.com/community/tutorials/js-stack-trace
https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/
https://blog.sentry.io/2015/10/29/debuggable-javascript-with-source-maps
https://code.tutsplus.com/tutorials/source-maps-101--net-29173
or project's issues
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.