Replies: 1 comment
-
|
I have already given an answer earlier that you can't just use Node.js modules in |
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.
-
(Was #19001)
Hi, I am being hinted that zeromq/zeromq.js#676 might be solvable with configuration changes for webpack.
In the repo, I have webpack.main.config.ts and webpack.renderer.config.ts
I set the following on the webpack.main.config.ts to get zeromq to load up properly on the main thread side.
externals: {
zeromq: 'zeromq',
path: 'path', // <- is this right?
fs: 'fs', // <- is this right?
net: 'net', // <- is this right?
},
How do I tell webpack to include fs, path, process, os node.js default packages for the renderer?
(just copying the above to webpack.renderer.ts over didn't work. )-:
Thank you @alexander-akait
Originally posted by @devzzzero in #18995 (comment)
impacts this: electron/electron#44805
Beta Was this translation helpful? Give feedback.
All reactions