GoogleChromeLabs / worker-plugin

👩‍🏭 Adds native Web Worker bundling support to Webpack.
https://npm.im/worker-plugin
Apache License 2.0
1.91k stars 79 forks source link

worker-plugin loader dependency not found #103

Open rishabhgoel9797 opened 3 years ago

rishabhgoel9797 commented 3 years ago

I am using Vue.Js and I am trying to use worker in VueX

new Worker('worker.js', {type: 'module'}) created using this. worker.js and the store file of VueX are in same directory.

`* /Users/rishabhgoel/Desktop/Ui-Catalog/pyeongyang-ui-catalog/node_modules/worker-plugin/dist/loader.js?{"name":"0"}!worker.js in ./common/src/store/modules/catalog.js

To install it, you can run: npm install --save /Users/rishabhgoel/Desktop/Ui-Catalog/pyeongyang-ui-catalog/node_modules/worker-plugin/dist/loader.js?{"name":"0"}!worker.js`

Can you please help with this error. I am not able to find any solution for this :(