Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Electron 9 error messageΒ #133

@Sergey-Churilin

Description

@Sergey-Churilin

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

  1. Run npm i
  2. 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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions