question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setup with yarn workspaces

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
lalalunecommented, Jan 19, 2021

+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

1reaction
amilajackcommented, Oct 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found