Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Electron Js build is not working while using Yarn workspace (monorepo)

We created the folder structure like project 1 common project 2

In common folder we put all react state management logic and common component accessing the state like:

import configureStore from 'common/app/state/configureStore'

package.json file for monorepo:

{
  "private": true,
  "workspaces": [
    "common",
    "project1",
    "project2"
  ],
  "scripts": {
    "w1": "yarn workspace project1 dev",
    "modules:build": "yarn wsrun --stages build",
    "w2": "yarn workspace project2 dev",
    "w3": "yarn workspace project1 dev",
    "w3_build": "yarn workspace project1 package:production",
    "w4_build": "yarn workspace project1 package:production",
    "build": "yarn modules:build; yarn --cwd project1 package:production"
  },
  "dependencies": {
    "wsrun": "^5.2.4"
  }
}

trying to create the build using "yarn build" build created successfully but can not accessing state management logic

Structure is working fine in development mode

Please help us to resolve the issue

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!