question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
spcBackToLifecommented, Nov 22, 2021

It seem QiYuTechDev/ElectronRemote@b57f771 can fix this problem

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Process Sandboxing | Electron
A sandboxed renderer won't have a Node.js environment initialized. Therefore, when the sandbox is enabled, renderer processes can only perform privileged tasks ...
Read more >
sandbox Option | Electron
Create a browser window with a renderer that can run inside Chromium OS sandbox. With this option enabled, the renderer must communicate via...
Read more >
@electron/remote - npm
electron /remote` is an [Electron](https://electronjs.org) module that bridges JavaScript objects from the main process to the renderer ...
Read more >
Electron functions are inaccessible from within renderer ...
Then in main.js add the following line: require('@electron/remote/main').initialize(). Then finally when you're creating your window in the ...
Read more >
sandbox Option - Electron - W3cubDocs
A sandboxed renderer doesn't have a Node.js environment running and doesn't expose Node.js JavaScript APIs to client code. The only exception is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found