You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
WARNING in No instantiations of threads.js workers found.
Please check that:
1. You have configured Babel / TypeScript to not transpile ES modules
2. You import `Worker` from `threads` where you use it
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.js v19.5.0 but I also tested this with v18.0.0 and v16.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.
This may have been when the problem went away. YMMV (I was focused on the mismatched Mime type, #387, so didn't pay attention to this one once it was no longer happening).
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
The text was updated successfully, but these errors were encountered: