-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn encore dev --watch fails #1218
Comments
Flex recipes should be inserting the right code in assets/bootstrap.js depending on whether |
Thank you for your feedback. That explains a lot. |
Well, I've had time to test your thoughts. Unfortunately, this doesn't work either with "stimulus-bridge" or with "stmulus-bundle" in bootstrap.js
are installed
Basically, I follow this tutorial because I want to create modules with forms. And when I try to reproduce this yarn command in the course, this error occurs. |
I'll put the question the other way around. Where in the Symfony project directory tree can I find "stimulus-bridge"? What does the "'@symfony/stimulus-bridge'" syntax mean? |
Hey @Linuxmaker! I'm not sure what went wrong, but it looks like something weird happened when you originally installed Encore & Stimulus. Basically, all of this setup work should have been done automatically for you by the recipe system.
But, again, that should have been added for you automatically via the recipe, so something went weird and there could be other problems. For example, if you run the following commands, you will start a new project and get Encore + Stimulus installed successfully (and you could, at least, use this as a reference):
Btw, as mentioned in the tutorial - https://symfonycasts.com/screencast/symfony/webpack-encore - the latest version of the Let me know if that helps! |
Thank you for your feedback. I grep my history times after the installation commands. So I can say that I am using this practice project
carried out. If I now implement "symfony new encore_ux_app", how does that differ from 'composer create-project symfony/skeleton:"^6.3" testsymfony', with which I explicitly install Symfony 6.3? |
I deleted the project again and started as suggested. Up to this point everything is ok. Many thanks for the support. |
My guess is that by requiring both the asset-mapper component and the webpack-encore-bundle, you confused the Flex configurators as it is unexpected to use both asset management systems in a single project. |
That's quite possible. Maybe I got something wrong there. |
Thank you for this issue. |
Precisely because there is not much going on here, I found another solution. |
When in my project
yarn encore dev --watch
run, I get this error message
Before that I had symfony/stimulus-bundle with me
composer require symfony/stimulus-bundle
installed. So I assume that the file "@symfony/stimulus-bundle" exists. That's why I don't understand the yarn error.
My packages.json:
and the assets/bootstrap.js:
Maybe you can help me to understand the problem.
Greetings
Andreas
The text was updated successfully, but these errors were encountered: