Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Livewire Sortable.js Plugin: window.Livewire is undefined. Make sure @livewireScripts is placed above this script include #27

Closed
martin-ro opened this issue Aug 26, 2023 · 5 comments

Comments

@martin-ro
Copy link

v3 doesn't use @livewireScripts anymore.

@reasecret
Copy link

Same issue...

@sfc3lf44
Copy link

sfc3lf44 commented Sep 9, 2023

Also same issue with updated version

@chillbram
Copy link
Contributor

With the new way to use Livewire (that is without explicit declaration of @livewireScripts and @livewireStyles in your layout file), Livewire is actually only initialized if there are Livewire components on render. The result is that there should be no errors (with v0.3.0) on pages which contain Livewire components. The current check to see if Livewire is instantiated should, however, no longer throw an error, and probably silently stop further execution of the sortablejs script.

@gdebrauwer Could you take a look at this?

@krekas
Copy link

krekas commented Sep 16, 2023

ping @gdebrauwer . Any plans to fix it?

@gdebrauwer
Copy link
Contributor

Fixed in v0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants