-
Notifications
You must be signed in to change notification settings - Fork 107
Electron 9 error messageΒ #133
Description
Description
I'm getting an error message in console Uncaught Error: Loading non-context-aware native module in renderer
If use a workaround provided by electron to be possible to use currently such modules, it replaces with warning: (node:15876) Electron: Loading non-context-aware native module in renderer
But in Electron 11 this workaround will be removed by Electron and usage of spellchecker module will be impossible
Steps to Reproduce
https://github.com/Sergey-Churilin/Electron-samples/tree/spellchecker-sample
- Run npm i
- Run npm start
Expected behavior:
No error or warnings in console, application should work
Actual behavior:
If not to use a workaround, application doesn't work correctly
Reproduces how often:
100%
Versions
Node version: 12.16.1
Additional Information
Discussions about how the issue can be solved: electron/electron#18397
Also during module installation I'm getting such warnings:
..\src\worker.cc(38): warning C4996: 'v8::Object::Set': was declared deprecated
[C:\Spellchecker-sample\Electron-samples\node_modules\spellchecker\build\spellchecker.vcxproj]
c:\users\me\appdata\local\node-gyp\cache\12.16.1\include\node\v8.h(3499): note: see declaration of 'v8::Object::Set'