Skip to content

nodeIntegration breaks monaco-editor in React #20

Open
@johnlindquist

Description

@johnlindquist

In my app, if I enable:

renderer({
      nodeIntegration: true
    }),

Then after bundling, the monaco-editor causes the React app to completely re-mount and lose all its state.
My best guess is that monaco-editor uses a Worker that detects Electron and fails. It has been almost impossible to debug.

Note: This works fine in npm run dev mode, it only breaks after npm run build then dynamically loading the monaco-editor

Any ideas?

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