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

Fix "non-context-aware" error for Electron #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SomeRanDev
Copy link

Fixes #264 (and possibly #297 since crashing is what occurs currently with Greenworks on later Electron releases).

The latest releases of Electron prevent "non-context-aware" native modules. By Replacing NODE_MODULE with NAN_MODULE_WORKER_ENABLED this fixes the errors for Electron.

Replaced NODE_MODULE with NAN_MODULE_WORKER_ENABLED to fix issues with the latest electron releases.
@kefniark
Copy link
Contributor

kefniark commented Sep 9, 2021

That looks nice, if only there was still a maintainer alive on this project to merge PR 😄

P.S. I confirm that electron 14 on windows 10 (x64) with the nightly build it crash, with this patch it works as expected.
Good Job 👍

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

Successfully merging this pull request may close these issues.

Loading non-context-aware native module in renderer
2 participants