worker-plugin
worker-plugin copied to clipboard
parser.state.module.addPresentationalDependency is not a function
Using vue (2.6.12) with webpack (5.32.0), when using workerPlugin, I get this error:
Module parse failed: parser.state.module.addPresentationalDependency is not a function
File was processed with these loaders:
* ./node_modules/@vue/cli-plugin-babel/node_modules/cache-loader/dist/cjs.js
* ./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js
* ./node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js
You may need an additional loader to handle the result of these loaders.
It comes from JavascriptParserHelpers in webpack/lib/javascript ..
I will try to dig in but it's a first time approch for me on webpack
Did you end up finding a solution? I have the same problem with vuejs
I found that webpack was installed as a project on global level. Removing that fixed the issue for me. I hope that helps.
vseverestek Yes this helps. Thank you.