Recipe for using with lerna & yarn workspaces?
See original GitHub issueWas under the impression this worked out of the box. But my craco-app is failing to run components from other packages, ie. with same error as standard CRA. Failed to compile. Unexpected token
as referenced https://github.com/facebook/create-react-app/issues/1333.
- /packages
-/craco-app
-/components
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Recipe for using with lerna & yarn workspaces? #123 - GitHub
Lerna + Yarn Workspaces should work out of the box with CRACO. Here's the sample project I use to test the feature: https://github.com/ ......
Read more >Managing monorepos with lerna and yarn workspaces
You can create a packages folder and start adding creating your packages there or use this command $ npx lerna create @projectName/packagename ....
Read more >Managing monorepos with lerna and yarn workspaces - Medium
You can create a packages folder and start adding creating your packages there or use this command $ npx lerna create @projectName/packagename ....
Read more >Monorepos: Yarn Workspaces and Lerna for beginners!
Let's discover how to handle monorepos with multiple packages using Yarn Workspaces and LernaJS. We're going to discuss Yarn Workspaces ...
Read more >Sharing components using a monorepo built with Lerna and ...
Lerna and Yarn workspace are complementary tools to build monorepo. Lerna allows to execute npm scripts in package.json for all sub-projects.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sebastienfi,
Lerna + Yarn Workspaces should work out of the box with CRACO.
Here’s the sample project I use to test the feature: https://github.com/patricklafrance/craco-lerna-and-yarn-workspace
Thank you,
Patrick
In case anyone comes across this, here’s what I ended up doing, using a craco port of https://github.com/react-workspaces/create-react-app/tree/master/packages/react-scripts