Robotjs: This module is not context aware and requires allowRendererProcessReuse= false

Created on 20 May 2020  路  6Comments  路  Source: octalmage/robotjs

Expected Behavior

There sshould be no need to set app.allowRendererProcessReuse=false. Note that as of Electron 9 the default flipped to true.

Current Behavior

One has to manually set allowRendererProcessReuse to false, and you get this warning:

[1] (node:82611) Electron: Loading non-context-aware native module in renderer: '/Users/saghul/work/jitsi/jitsi-meet-electron/node_modules/robotjs/build/Release/robotjs.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.

Possible Solution

Looks like https://github.com/electron/electron/issues/18397 may have the answers.

Steps to Reproduce (for bugs)



1.
2.
3.
4.

Context


Your Environment

  • RobotJS version: 0.6.0
  • Node.js version:
  • npm version:
  • Operating System:

Most helpful comment

Any update to this? As the option has been deprecated.

All 6 comments

Any update to this? As the option has been deprecated.

Man why nobody is answering this?

Also interested in having this fixed. What can we do to help?

I'm also having this issue now. Fixed it for now with app.allowRendererProcessReuse=false but in Electron 11 that won't be possible.

A possible workaround I'm using is to load this module in the main process and if I need to use it from the renderer process, I just use Electron's IPC calls.

Any update on this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lmnyx picture lmnyx  路  5Comments

MariaDima picture MariaDima  路  3Comments

piyushpatil027 picture piyushpatil027  路  3Comments

Multiply picture Multiply  路  6Comments

linonetwo picture linonetwo  路  12Comments