Open albusphan opened 3 years ago
any updates on potential support for this?
Did anyone ever manage to get this working by any chance, please? I'm facing a similar issue on a brand new project setup of NextJS@12.2.0.
I'm getting the following error Error: Cannot find module 'worker-loader!./worker'
. It seems to be coming from @zappar/zappar-cv
, but can't figure out how to solve it. Any help would be greatly appreciated. I can also attach the whole project if it helps.
@danielvella
This may be due to the failure to bundle the WORKER. Can you solve this problem by using the following plugin? https://www.npmjs.com/package/worker-plugin
I am using it with vite, but the worker was not pre-built, so I used a plugin to solve the problem. https://github.com/activeguild/vite_zappar/blob/5ea1e4e90241d06ef38740b3613fb94095d08cb9/vite.config.ts#L13
I would be happy to help you with a solution.
+1
Is your feature request related to a problem? Please describe. I tried to bootstrap the project with create-next-app. I use the rules in the doc, but keep return error when start the project.
Describe the solution you'd like After research, I see the the
webpack/lib/SingleEntryPlugin
is remove on webpack 5, so could you update the dependencies of the lib to compatible with webpack 5.