laravel-livewire-tables icon indicating copy to clipboard operation
laravel-livewire-tables copied to clipboard

[Bug]: Uncaught ReferenceError: currentlyReorderingStatus is not defined

Open winkcler opened this issue 5 months ago • 3 comments

What happened?

I don't know why this problem happens every now and then.

When this happens, the table is completely disconfigured.

image

The search input disappears.

When I change the page, the button appears again, but the table is unconfigured.

image image

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), :3:33) at livewire.js?id=e2b302e9:1271:23 at tryCatch (livewire.js?id=e2b302e9:1191:14) at livewire.js?id=e2b302e9:3534:19 at reactiveEffect (livewire.js?id=e2b302e9:2365:18) at Object.effect2 [as effect] (livewire.js?id=e2b302e9:2340:7) at effect (livewire.js?id=e2b302e9:734:35) at wrappedEffect (livewire.js?id=e2b302e9:750:29) at Function. (livewire.js?id=e2b302e9:3534:5) at flushHandlers (livewire.js?id=e2b302e9:1353:48)

winkcler avatar Jan 10 '24 01:01 winkcler

https://laraveldaily.com/post/livewire-3-laravel-breeze-error-alpine-js-conflict

CLCWebsiteServices avatar Jan 10 '24 16:01 CLCWebsiteServices

Review your app.js file to ensure that Alpine.js is not initialized twice.

jaroslavstefanec avatar Jan 29 '24 10:01 jaroslavstefanec

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.

desinabl avatar Feb 02 '24 14:02 desinabl

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.

stale[bot] avatar Mar 03 '24 15:03 stale[bot]