Need a tutorial to update a plugin v3 to v4 ?

I'm trying to start updating my plugin v3 to v4 (https://github.com/webplusmultimedia/filament-json-media ). Unfortunatly, the upgrade commande is ok, but the render is completly broken. what i've got :
GitHub
GitHub - webplusmultimedia/filament-json-media: a media library bas...
a media library base on json field with custom properties + Galleries on front-end - webplusmultimedia/filament-json-media
No description
8 Replies
awcodes
awcodes4mo ago
Filament v4 uses tailwind v4, you need to update your you css integration and build.
Dan-webplusm
Dan-webplusmOP4mo ago
that's not only the problem. A lot of stuffs has change here, probably cuz the very good partial render.... For example in entry, i catch this error Unable to locate a class or view for component [filament-infolists::entry-wrapper.label]. I need to investigate first. but thank did you have a repo with a plugin in v4 ?
awcodes
awcodes4mo ago
So, far: Badgeable Column Gravatar Light Switch Overlook Shout Sticky Header Versions I have a lot to upgrade. 😂 All changes will be on the next version number branches.
Dan-webplusm
Dan-webplusmOP4mo ago
oh, great Oo My bad, this can't load those ax-load-src 🤔
awcodes
awcodes4mo ago
The ax loading was actually changed in one of the v3 releases, with the upgrade for async alpine, but Dan made a non breaking script for it that probably isn’t in v4. Trying to find the version for you. Was some where around 3.2.130 iirc.
Dan-webplusm
Dan-webplusmOP4mo ago
Yeah, i got it right now lol . Thank We need to pay attention on : - the state and the rawState - change the way of finding methods on alpine front (...) - replaced ax-load and ax-load-src with x-load and x-load-src - found the way to add an action for alpine btw, i don't know how to add the action on my plugin, dn't work for now
Lukas
Lukas4mo ago
By the way check if you replaced ax-load and ax-load-src with x-load and x-load-src. The syntax seems to have changed in v4
Dan-webplusm
Dan-webplusmOP4mo ago
yeah i did, this is the one whom kill me lol thank got my custom action in alpine mode 🔥

Did you find this page helpful?