Open lambertbeekhuis opened 1 year ago
It seems that I've the same problem.
Do you find a solution @lambertbeekhuis ?
I can't reproduce this. I can see all assets versioned and all are loaded without issues on all backend pages.
We use Symfony's asset()
function and take care of using the right asset package name. See for example:
Please, try to find the exact cause of the error. It might be an EasyAdmin bug, but at this point we can't prove that. Thanks.
OK just tried on an another project.
Just after the upgrade assets are not loaded.
But I made an nom install
and nom run build
and then everything was fine.
Describe the bug In an existing sf 5.4 project, I upgraded from easyAdmin 3 tot easyAdmin 4.5.2 in a project using Webpack Encore. The easyadmin-assets are nicely versioned, but on dashboard, it looks for the app.js en app.css versions without versioning. In the public/easyadmin folder, there the versioned app-xxxx.css and app-xxxx.js, but they are not picked up as the admin page is looking for unversioned versions.
When I downgrade to e.g. EasyAdmin 4.1.0, the assets are not versioned, and everything works as normal.
I think it is related to https://github.com/EasyCorp/EasyAdminBundle/pull/5265 and do not understand how to apply default versioning.
To Reproduce Make a new Symfony 5.4 version, add Webpack Encore and add the bundle
(OPTIONAL) Additional context.