DEV Community

Discussion on: How to handle peer dependencies when developing modules

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.

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.