workerize-loader icon indicating copy to clipboard operation
workerize-loader copied to clipboard

FetchCompileWasmTemplatePlugin is not a constructor

Open chris-aeviator opened this issue 3 years ago • 4 comments

I'm running into this in my react app (next.js) when trying to use the workerize-loader!./myWorker

chris-aeviator avatar Dec 20 '21 18:12 chris-aeviator

any update?

Th0rgal avatar Mar 02 '22 17:03 Th0rgal

The reason is the plugin was renamed to FetchCompileWasmPlugin in Webpack 5

rjgotten avatar Sep 29 '22 14:09 rjgotten

@rjgotten, how to fix it?

sadeq-qafari avatar Sep 13 '23 09:09 sadeq-qafari

@sadeq-qafari There is no way of fixing it, short of patching the package.

I actually ended up writing my own instead - because workerize-loader has some other nasty breakage wrt webpack cache that makes it produce unreliable output: https://github.com/developit/workerize-loader/issues/131#issuecomment-1262216608 and I didn't like several other aspects of its API surface.

However, that stuff is company code I can't share. Sorry.

rjgotten avatar Sep 13 '23 10:09 rjgotten