You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PHP part works fine, but there are issues with stimulus. I imagine others who are migrating to Symfony 7 may run into the same issues, so maybe this issue can be the beginning of a migration guide.
In particular, when using both webpack and AssetMapper, should there be TWO app.js files, once that's the entrypoint for the importmap and the other that's for webpack? If I load javascript dependencies via Assetmapper / importmap, will they be available in my webpack-handled javascript?
{{ encore_entry_script_tags('app') }}
And in particular, how should the stimulus bootstrap file (which of course needs to change from the bridge to the stimulus-bundle). Currently it fails:
ERROR Failed to compile with 1 errors 8:16:37 AM
Module build failed: Module not found:
"./assets/bootstrap.js" contains a reference to the file "@symfony/stimulus-bundle".
This file can not be found, please check it for typos or update it if the file got moved.
Of course, I'd eventually love to get rid of the whole yarn install && yarn dev step, but in practice I'm sure I'll need it in my own projects for a while, and so understanding how to use them both will be important.
The text was updated successfully, but these errors were encountered:
I'm not answering to your question, but I'm adding a quick comment here: for Symfony Demo, first we'll tag and release a version of the project using Symfony 6.4 (see #1431) and soon after that, we'll update the project to 7.0, tag it and release it.
Also, we don't maintain multiple versions of this project. We only use the current stable version. That's why the version using Symfony 7.0 will be the only maintained version. Thanks!
Hello @tacman ! Thanks a lot for all the beta-test you do, that helps a lot
I can just answer for the StimulusBundle bug(s). That is something we are working on, and i now there is hope to release a new version soon, for everyone to test before the Symfony 7.0 release.
But feel free to post specific issues on the symfony/ux repository :)
I have a version of this demo working with Symfony 7 for everything except doctrine/doctrine-fixtures-bundle
The PHP part works fine, but there are issues with stimulus. I imagine others who are migrating to Symfony 7 may run into the same issues, so maybe this issue can be the beginning of a migration guide.
In particular, when using both webpack and AssetMapper, should there be TWO app.js files, once that's the entrypoint for the importmap and the other that's for webpack? If I load javascript dependencies via Assetmapper / importmap, will they be available in my webpack-handled javascript?
And in particular, how should the stimulus bootstrap file (which of course needs to change from the bridge to the stimulus-bundle). Currently it fails:
Of course, I'd eventually love to get rid of the whole yarn install && yarn dev step, but in practice I'm sure I'll need it in my own projects for a while, and so understanding how to use them both will be important.
The text was updated successfully, but these errors were encountered: