bennymeg / nx-electron

Electron schematics for nrwl nx platform
Apache License 2.0
307 stars 82 forks source link

Can't install electron in a new NX monorepo version 19.0.2 #291

Closed abelabbesnabi closed 1 month ago

abelabbesnabi commented 1 month ago

Screenshot 2024-05-10 094401

YeomansIII commented 1 month ago

Please simply try using package.json overrides field to solve this error.

{
  "name": "your-project-name",
  "version": "1.0.0",
  "scripts": {
    "start": "nx serve"
  },
  "dependencies": {
    "nx": "latest"
  },
  "devDependencies": {
    "nx-electron": "^19.0.2"
  },
  "overrides": {
    "nx-electron": {
      "@nx/workspace": "19.0.2"
    }
  }
}
abelabbesnabi commented 1 month ago

I'll try. Thank you

Please simply try using package.json overrides field to solve this error.

{
  "name": "your-project-name",
  "version": "1.0.0",
  "scripts": {
    "start": "nx serve"
  },
  "dependencies": {
    "nx": "latest"
  },
  "devDependencies": {
    "nx-electron": "^19.0.2"
  },
  "overrides": {
    "nx-electron": {
      "@nx/workspace": "19.0.2"
    }
  }
}
bennymeg commented 1 month ago

The reason that it does not work is the there is no nx-electron v19 yet