require('@electron/remote') 获取不到里面的属性值

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
electron, typescript
Domain
desktop

Research direction

Start by reproducing the reported property-access failure with Electron 22.3.18 and @electron/remote 2.1.2, using the @electron/remote/main initialize() and enable(window.webContents) entry points shown in the issue. Compare the renderer-side require('@electron/remote') result with the expected object properties; done requires a confirmed cause and a verified fix or documented compatibility limitation.

Written by the indexing model from the issue text.

Description

e2ecc237-0500-4226-a2db-138bb1c35cfd

electron版本 22.3.18
@electron/remote版本 2.1.2

以下代码均已执行
require('@electron/remote/main').initialize();
require("@electron/remote/main").enable(window.webContents)

Dominant language
TypeScript
Stars
411
Forks
53
Avg merge
3m
Merged PRs (30d)
1

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.

More from electron/remote

All issues in electron/remote

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.