Skip to content

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

@jthrilly

Description

@jthrilly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions