Closed stclairdaniel closed 5 years ago
It needs to be another Create React App - so from the root run
yarn create react-app packages /componentsTwo
and you should be able to reference them from your apps.
@stclairdaniel did you run yarn
after updating your Workspaces?
I'm sorry, I should have commented earlier. I did not have a package.json in the second library - I thought some exported components and an index.js was sufficient. Thanks :)
I figured it would be as simple as making another directory inside of packages, say
componentsTwo
, adding it to the rootpackage.json
underworkspace/packages
and then add it to the applicationpackage.json
like"@project/componentsTwo": "*"
, but I get an error when trying toyarn install
-error Couldn't find package "@project/helpers@*" required by "my-app" on the "npm" registry.
Is this some silly user error?