worker-plugin icon indicating copy to clipboard operation
worker-plugin copied to clipboard

parser.state.module.addPresentationalDependency is not a function

Open JGrimbert opened this issue 4 years ago • 3 comments

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

JGrimbert avatar Apr 30 '21 22:04 JGrimbert

Did you end up finding a solution? I have the same problem with vuejs

kostyay avatar Jul 14 '21 16:07 kostyay

I found that webpack was installed as a project on global level. Removing that fixed the issue for me. I hope that helps.

vseverestek avatar Jan 06 '22 10:01 vseverestek

vseverestek Yes this helps. Thank you.

matictrebusak avatar Jun 14 '22 05:06 matictrebusak