Replies: 6 comments 5 replies
|
Please help! I'm tearing my hair out here! |
|
So it looks like the immediate culprit is that the polyfills for thank you. |
|
Please refer to niksy/node-stdlib-browser#33 Thank you. |
|
Sorry, we can't solve this here, close in favor - niksy/node-stdlib-browser#33 Feedback welcome |
|
Hi, I am being hinted that this might be solvable with configuration changes for webpack. I set the following on the How do I tell webpack to include |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
test-ui.zip
webpack complains of
The "path" argument must be of type string. Received undefinedWhat is the current behavior?
Webpack fails to load with
I've looked at #12616 but it doesn't have anything actionable
If the current behavior is a bug, please provide the steps to reproduce.
Please see zeromq/zeromq.js#676
npm init electron-app@latest test-ui -- --template=webpack-typescriptnpm i preact --save-dev(https://preactjs.com/guide/v10/getting-started and followedAliasing in Webpacknpm i zeromq --save-devAlternatively, do step (1) above and then unzip test-ui.zip into test-ui, and run npm install. Copy paste any zeromq test code into index.ts and watch it fail like above.
I then played around a simple zeromq.Subscriber socket and got it to work (in a single .ts file)
I then tried importing the working code into the main process (index.ts) and that's where the problem began:
What is the expected behavior?
I expected it to just work. (Seriously!)
Please see project configuration (tsconfig.ts, package.json and webpack.*.ts) in test-ui.zip
Other relevant information:
webpack version: webpack@5.96.1 | MIT | deps: 23 | versions: 839
Node.js version: node@18.20.5 | ISC | deps: 1 | versions: 730
Operating System: Opensuse 15.5
Additional tools:
All reactions