GoncharukOrg / react-input

109 stars 9 forks source link

Module not found: Error: Can't resolve '@react-input/core' #10

Open pgruetznergridx opened 1 year ago

pgruetznergridx commented 1 year ago

I was trying to run the script "storybook" but got the mentioned error node: v18.17.0 npm: 9.6.7

GoncharukBro commented 1 year ago

Could you provide a link to the repository with the project that has the problem?

anshmain commented 11 months ago

Got the same problem just cloning this repo, installing dependencies and trying to run tests or storybook. The problem is that storybook expects to have installed package @react-input/core (while global package.json doesnt have one required) in node_modules or it might be solved by adding aliases to monorepo just to fix this while you develop some package. @GoncharukBro

dfontalv20 commented 10 months ago

Got the same problem just cloning this repo, installing dependencies and trying to run tests or storybook. The problem is that storybook expects to have installed package @react-input/core (while global package.json doesnt have one required) in node_modules or it might be solved by adding aliases to monorepo just to fix this while you develop some package. @GoncharukBro

I resolved this building the core package. I think that this is due to the "main" field in the package.json of the package