Skip to content

Error: @electron/remote >= 2.x is required for Electron >= 14 #76

@gyteng

Description

@gyteng

there is something wrong in initialize function:

if (Number(process.versions.electron.split('.')[0]) >= 14)
    throw new Error('@electron/remote >= 2.x is required for Electron >= 14. See https://github.com/electron/remote/blob/main/docs/migration-2.md for migration instructions.')
  initialized = true

should be:
if (Number(process.versions.electron.split('.')[0]) < 14)

https://github.com/electron/remote/blob/main/src/main/server.ts#L362

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions