bennymeg / nx-electron

Electron schematics for nrwl nx platform
Apache License 2.0
328 stars 85 forks source link

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

Closed abelabbesnabi closed 6 months ago

abelabbesnabi commented 6 months ago

Screenshot 2024-05-10 094401

YeomansIII commented 6 months 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 6 months 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 6 months ago

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