MarshallOfSound / MarshallOfSound/react-electron-web-view

Need to add 'enableRemoteModule' and 'contextIsolation' to support newer electron (eg 14)?

Open
#35 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
64
Forks
33
PR merge metrics
No merged PRs in 30d

Description

I was trying to debug why I keep getting the following error:
```
VM254 renderer_init.js:81 Error: @electron/remote is disabled for this WebContents. Set {enableRemoteModule: true} in WebPreferences to enable it.
```
The suspicion that I have is that this is not defined in the `constants` file as a `props` element. Could you please confirm if this is the case or whether I need to go down a different line of thinking?

I'm trying to upgrade to electron 14, and the code can be found in this [PR comment](https://github.com/getferdi/ferdi/pull/1860#issuecomment-933517432)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the constants file referenced in the report and inspect how WebPreferences properties are passed to Electron's webview; compare that path with Electron 14 requirements and the linked Ferdi PR comment. Done means the requested options are supported and the reported @electron/remote error no longer occurs under the relevant configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, react
Domain
desktop, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.