is it possible to use 'net' node library in electron-preload.js #14225
Unanswered
on-meetsys
asked this question in
CLI - Electron mode
Replies: 1 comment
-
|
FYI for others finding this page in the future: It might be including the Electron |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have to use 'net' services in a p2p Quasar/Electron application, for example :
It works fine in
electron-main.jsfile : the server is created.I would also like to call methods from the renderer, so I've tried to do it in the
electron-preload.jsfile. But then, the 'net' library seems to be imported thanks to webpack, and with the same code I have the following error :p2p.ts?1f3e:13 Uncaught (in promise) TypeError: net__WEBPACK_IMPORTED_MODULE_7___default(...).createServer is not a functionIs there a Quasar setup to have Webpack not used in
electron-preload.js? Or do I have to put my 'net' code intoelectron-main.jsand call them by messages ? Or do I have misunderstood something ?Thanks for any advice.
Beta Was this translation helpful? Give feedback.
All reactions