Modal is not opening in local development but it is opening in production

Hi, i am trying to open a simple delete action modal and in my local development environment it is not loading but in my production it is opening correctly. What steps should i take now to make it work on local dev too ? Please guide.
13 Replies
LeandroFerreira
what is the issue?
Priyank
PriyankOP2y ago
Modal does not popup in local dev. But it does pop up in production. I tried in a fresh installation and the modal works there. Even in local dev. I tried deleting the vendor folder and node_modules folder too. But modal not opening.
Vp
Vp2y ago
any cache in local?
Priyank
PriyankOP2y ago
I tried php artisan optimize:clear
benshawuk
benshawuk2y ago
Any console errors?
Priyank
PriyankOP2y ago
Oh yes ! on local dev when i open inspect i am getting this console errors,
Vp
Vp2y ago
Hi @ticketmaster7 can you elaborate more specific like Filament Version Is delete action is custom or not Is your page is custom or not etc It will help us to understand the error clearly and what cause it, thanks
Priyank
PriyankOP2y ago
Filament Version - v2.17 Is delete action is custom or not - Delete action is custom Is your page is custom or not etc - It is a resource page and i am trying to add Delete Action button on each record. I am getting console errors as shown above in the Filamentphp Admin Login page and only in Admin Panel. I think it may be due to Filament Notifications
Vp
Vp2y ago
I don't have any idea. sorry, but "It is a resource page and i am trying to add Delete Action button on each record." filament already include delete action right?
Priyank
PriyankOP2y ago
Bro i am just testing whether my modals are able to open or not. Because the same code when goes in production it works the modal opens, so why not in my local dev, and in particular this one project, because i tried making new project and it works in local dev too The console errors are trying to tell me something but i am not able to figure it out.
benshawuk
benshawuk2y ago
What OS are your dev/production machines running? I've had issues before where my mac dev env works fine, but then it chokes on Linux because the OS is case sensitive.. just a stab in the dark. Also, have you got any other Livewire components on the page that uses the modal?
Priyank
PriyankOP2y ago
I am using Windows for local dev and Linux , I do not have any other livewire component on that page, in fact the console errors are present from Admin Panel login page itself, i am trying to reproduce the error by starting with a fresh installation. i believe this will get me to the root of the problem.
benshawuk
benshawuk2y ago
Most likely! Let us know if that fixes it.
Want results from more Discord servers?
Add your server