DEV Community

Discussion on: How to handle peer dependencies when developing modules

Collapse
 
sevenzark profile image
Dave M

Unfortunately, the linking solution for the React library did not work for me. The link seemed to set up just fine, but when I launched the consumer app I got the dreaded "Invalid hook call," same as before setting up the link to react.

Collapse
 
jusufa profile image
Angela J

It didn't work for me too in the beginning, but after I deleted the node_modules in the library, reinstall and did the linking again between the library and parent App, it works. Maybe something you could try.

Collapse
 
sevenzark profile image
Dave M

I do know to try this, but unfortunately it does not resolve the problem. I have run into this again while trying to develop a library. Very frustrating and link simply doesn't work to resolve this at all.