Skip to content

Electron: Loading non-context-aware native module in renderer #95

@alba-ado

Description

@alba-ado

Hello, thank you very much for this library. I have been running this library with electron for quite some time now. However, as I decided to update my version of the electron, I found that it gives an error because of the N-API compatibility (I think). In the earlier versions of the electron, it was possible to turn this off by using

app.allowRendererProcessReuse = false;

However, they have removed this approach in the latest versions of the electron. How can we fix this problem? Or can you issue an update regarding the fix of context-aware modules?

Here is the full error message I'm getting:

Uncaught Error: Loading non-context-aware native module in renderer: '/home/ado/Projects/Electron/node_modules/@pokusew/pcsclite/build/Release/pcsclite.node

at process.func [as dlopen] (node:electron/js2c/asar_bundle:5)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5)
at Module.load (node:internal/modules/cjs/loader:988)
at Module._load (node:internal/modules/cjs/loader:829)
at Function.c._load (node:electron/js2c/asar_bundle:5)
at Function.o._load (node:electron/js2c/renderer_init:33)
at Module.require (node:internal/modules/cjs/loader:1012)
at require (node:internal/modules/cjs/helpers:94)
at bindings (/home/ado/Projects/Electron/node_modules/bindings/bindings.js:112)

This problem is probably caused by using an old version of the bindings module. Is there any possibility that this could be fixed?

Thank you very much in advance

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