Open ChapterSevenSeeds opened 1 year ago
I had this issue for a while. And then it went away - and of course I don't remember exactly what was different (sorry)!
But: I may have a clue if memory serves me well.
This may have been when the problem went away. YMMV (I was focused on the mismatched Mime type, https://github.com/andywer/threads.js/issues/387, so didn't pay attention to this one once it was no longer happening).
Good luck!
Hello. I am working on an Electron app that uses TypeScript with Webpack and I recently installed
threads.js
. I followed the instructions on configuring TypeScript and Webpack and I keep getting this warning from webpack:If I attempt to run the resulting bundle via
Node.js
, I get an exception saying that the thread script doesn't exist (which it doesn't since it isn't being bundled). I primarily use Node.jsv19.5.0
but I also tested this withv18.0.0
andv16.0.0
and all gave me the same result.I created a minimal example that reproduces the issue in full. Here are all my files.
src/index.ts
src/stuff.ts
webpack.config.js
tsconfig.json
package.json