Setup with yarn workspaces
See original GitHub issueHi,
I tried setting up the boilerplate with yarn workspaces but doesn’t seem to work for me. In particular, I’m trying to add a node_module with native dependencies, as a package. So my app structure looks like:
├── my-cool-electron-app <-- the top level
│ ├── app
├── native-stuff <--- my other module, this contains native deps
├── package.json
The docs for two package.json setup and the link to the workspaces setup are also broken. Any nudges in the right direction would be appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Workspaces - Yarn
Workspaces are a new way to set up your package architecture that's available by default starting from Yarn 1.0. It allows you to...
Read more >Yarn Workspaces: Organize Your Project's Codebase Like A Pro
Prerequisites # · Create Your Project And Root Workspace · Create A React Project And Add It To The Workspace List · Create...
Read more >Yarn workspaces — monorepo beginner's guide | The Startup
In this guide, we will create a sample monorepo using Yarn workspaces. It will contain both back-end (express) and front-end (react) ...
Read more >Scaling out JavaScript Monorepos with Yarn Workspaces
The first thing to do is set up the workspaces. Start by ensuring that you're running the latest Yarn version. ... Next, initialize...
Read more >Yarn workspace tutorial, introduction and cheatsheet
It allows you to setup multiple packages in such a way that you only need to run yarn install once to install all...
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 Free
Top 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

+1 for this. ERB does not work with yarn / npm workspaces out of the box.
We have an application with yarn workspaces for server, common and client. Our client is ERB. Inside the monorepo with yarn workspaces, the dependencies install into the root of the repository, not the root of the ERB package, which seems to be the problem.
I have a project in the works that demonstrates the issue reproducibly. Here is a monorepo, the packages/hub project is ERB boierlplate, unchanged. https://github.com/The-Metaverse-Construction-Company/ARfx-Home-Studio Here is our single repo for the hub ERB app that we’re working on in a separate repo until we can fix this issue: https://github.com/The-Metaverse-Construction-Company/arfx-hub
I’m not sure about this because I haven’t experimented with workspaces in ERB just yet. I’ll let you know if I have any ideas around this if I figure it out.