Closed amshehzad closed 6 months ago
Can you share the full exception with us? I'm lacking a bit of context with just the screenshot
Yes sure here is full error stack: https://flareapp.io/share/NPL8lbQP
Sorry my bad, I missed this part from upgrade:
MAKE SURE YOU'RE SETTING YOUR MEDIA PROPERTIES TO A DEFAULT EMPTY ARRAY
I changed public array $documents;
to public array $documents = [];
and the problem is solved.
but I'm still not able to use the component. in console I can see a lot of errors:
If I try to upload something despite these errors I get this error: https://flareapp.io/share/W7zDk6lm
Can you share your full console errors including the warnings?
Yes here it is:
Can you try running php artisan view:clear
and see if that solves your issue?
Unfortunatly it didn't
if it's possible, can we connect on discord so I can share more details or share whatever you need to check more details about the issue?
Can you set up an example repo which reproduces your issue?
Ok I created a new repo but the error is not there, after some debugging it seems like the problem occurs when I use it inside wire-elments modal component. I'll try to setup a new repo with wire-elements producing the issue
@riasvdv please check the repo: https://github.com/amshehzad/medialibrary
the component does not work inside wire-elements modal
@riasvdv I've discussed the issue with Philo the creator of wire-elements and here is what he suggested:
I found that the issue is related to how Livewire works. The modals are loaded dynamically and the Githubissues.
I've followed the upgrade guide but I'm getting this error: