Generate build to be published in npm
Closed this issue · 1 comments
ozaytsev86 commented
At the moment I'm generating the build but when I link the project in local with npm link
I get an error Invalid Hook
I've checked the suggestion by FB team, and there is no mismatch version and no duplicated react. The thing is coming from MapContainer which is coming from an external library, but if I copy and paste the build.js
into my project's src and just import it as a component, it all works. So the problem might be an npm link
or something around. I'm not an expert in this kind of issue as this is my first "library" that I would like to publish to npm.
I appreciate any help. Here is also a test project with instructions to link both of them
ozaytsev86 commented
solved