Closed jmariller closed 1 year ago
Hmm. This is from a complex workaround in https://github.com/symfony/stimulus-bridge/blob/4204b399dfca85f209af38f3f5184fadcf4bbd23/src/webpack/loader.ts#L31-L39 ... a workaround we also use in Encore, and I can't find any issues there about it.
Does the error go away if you disable the vue loader?
Hi @weaverryan, thanks a lot for getting back to me!
Does the error go away if you disable the vue loader?
Not completely sure what you mean with disable, I take it you imply removing it from package.json. If so, here is the result when trying to compile:
Hi @weaverryan
After further investigation and trying with a fresh project I noticed that the problem seems to be related to Yarn (with PnP mode enabled): when installing & compiling with NPM it works fine. Do you have any idea why?
This is resolved thanks to Webpack 4.0 :) Thank you!
https://github.com/symfony/webpack-encore/releases/tag/v4.0.0
Hi,
I am trying to use Stimulus with VueJS, unfortunately I always get the same error message during compilation:
Here is an extract of![image](https://user-images.githubusercontent.com/48550159/172856535-0767ab03-6e02-47c8-b9c1-aa3919a70ef8.png)
package.json
:webpack.config.js
:And the full error message:![image](https://user-images.githubusercontent.com/48550159/172857077-cb868d20-4d7a-4729-b09c-90b9feb891f0.png)
I suspect this has to do with the different versions of Webpack - I tried to remove the dependencies from![image](https://user-images.githubusercontent.com/48550159/172857294-4f8f31b4-b56c-43f5-aef2-aff1ee9236ae.png)
package.json
, but then got this error message:Does anybody have a similar issue, and a possible solution?
Thanks!