electron/remote

Electron >=v13.0.0-beta.6 required to support sandboxed renderers

QiYuTechDev opened this issue · 10 comments

BrowserWindow webPreferences setting is:

{
    "nodeIntegration": true,
    "contextIsolation": false,
    "sandbox": false,
    "enableRemoteModule": true,
}

Demo code:

import {dialog} from "@electron/remote";

It seems the demo code works on electron 12.x but broken with 13.0.1 version.

The module seems to be working OK on 13.0.1, as shown by this Fiddle: https://gist.github.com/0088222a5bd8e87d6e73fa006e4c18ff

What problem are you having?

I build a demo app to reproduce the bug:

source code: https://github.com/QiYuTechDev/ElectronRemote

It seem QiYuTechDev/ElectronRemote@b57f771 can fix this problem

It seem QiYuTechDev/ElectronRemote@b57f771 can fix this problem

I tried, it seems still has this problem = =.

It still has this problem ...

Same issue here

I solve the problem with const {dialog} = require('electron').remote

this is still happening

#130 (comment)

This might help.