Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not "context aware" - cannot be used in Electron #242

Open
jthrilly opened this issue May 29, 2020 · 0 comments
Open

Module not "context aware" - cannot be used in Electron #242

jthrilly opened this issue May 29, 2020 · 0 comments

Comments

@jthrilly
Copy link

Hi!

This module will shortly become unusable in Electron projects due to it not being "context aware": https://nodejs.org/api/addons.html#addons_context_aware_addons

This will result in use of the module in the renderer emitting a warning such as:

Error: Loading non-context-aware native module in renderer

See here for further details: electron/electron#18397

As of Electron 9, this can be worked around by using app.allowRendererProcessReuse = false, but this option will be removed soon.

I'm unsure how much work is required to make the module context aware, but I wanted to post this issue as a starting point, and a reference for others who may encounter this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant