laravel-livewire-tables
laravel-livewire-tables copied to clipboard
[Bug]: Uncaught ReferenceError: currentlyReorderingStatus is not defined
What happened?
I don't know why this problem happens every now and then.
When this happens, the table is completely disconfigured.
The search input disappears.
When I change the page, the button appears again, but the table is unconfigured.
How to reproduce the bug
No response
Package Version
3.2.0
PHP Version
8.2.x
Laravel Version
10.8.0
Alpine Version
3.10.5
Theme
Bootstrap 5.x
Notes
No response
Error Message
livewire.js?id=e2b302e9:1202 Uncaught ReferenceError: currentlyReorderingStatus is not defined
at [Alpine] !currentlyReorderingStatus (eval at safeAsyncFunction (livewire.js?id=e2b302e9:1249:21),
https://laraveldaily.com/post/livewire-3-laravel-breeze-error-alpine-js-conflict
Review your app.js file to ensure that Alpine.js is not initialized twice.
https://laraveldaily.com/post/livewire-3-laravel-breeze-error-alpine-js-conflict
in addition to the solution given by CLCWebsiteServices, after you make sure that alpinejs is not being loaded twice and if you are using a bundler, such as vite for example I suggest you add the following to app.js:
import '../../vendor/rappasoft/laravel-livewire-tables/resources/imports/laravel-livewire-tables-all.js';
Reference: https://rappasoft.com/docs/laravel-livewire-tables/v3/start/including-assets.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.