Closed felixrigau closed 5 years ago
@felixrigau you're opening an issue in a different repository, we are not using rollup.
I'm also running into this as well. I created a component, imported it into another project via yarn link
and am seeing this.
I believe this is because this starter kit is not handling multiple versions of React correctly. I have a component that is working (with hooks) inside of my library repo but I get this error when I use it inside of another project (built with create react app). I'm pretty sure there is some config/dependency issue with webpack
I'm trying to create and export a React component using useState() React hook, but the example application that imports the exported component by the library doesn't work.
I just generated the project using the default settings, so the package.json files and the rollup.config.js were generated by "create-react-library" (none modifications).
I've created this small component as an example:
Any idea how to fix it? Thanks!