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

(node:660) electron: The default of contextIsolation is deprecated and will be c hanging from false to true in a future release of Electron. #224

Closed
wangqiangcc opened this issue Nov 27, 2020 · 2 comments

Comments

@wangqiangcc
Copy link

Hi, i am use electron 11.0.3 (Node.js 12.18.3, Chromium 87.0.4280.67, and Electron 11.0.3)

run app errors:

(node:660) electron: The default of contextIsolation is deprecated and will be c
hanging from false to true in a future release of Electron. See https://github.
com/electron/electron/issues/23506 for more information
(node:13928) Electron: Loading non-context-aware native module in renderer: '\?
\G:\workspace\project\trunk\src\electron-client\appclient\node_modules\nanomsg\bui
ld\Release\node_nanomsg.node'. This is deprecated, see https://github.com/electr
on/electron/issues/18397.

https://github.com/nickdesaulniers/node-nanomsg/blob/master/src/node_nanomsg.cc#L286

//NODE_MODULE(node_nanomsg, InitAll)
#if NODE_MAJOR_VERSION >= 10
NAN_MODULE_WORKER_ENABLED(node_nanomsg, InitAll)
#else
NODE_MODULE(node_nanomsg, InitAll)
#endif

rebuild ok ~

@Bartel-C8
Copy link
Contributor

So @dnybz , how did you solve this?

@Bartel-C8
Copy link
Contributor

Actually, your solution solved it. I was just rebuilding it wrongly (with yarn rebuild / npm rebuild). But I was using electron-rebuild, which was/should be responsible of rebuilding the native module correctly (with the correct (ABI) version of Electron).

Thanks!

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

No branches or pull requests

2 participants