Troubleshooting
Laravel Livewire Documentation Reference
Since Magewire is heavily inspired by Laravel Livewire, many concepts are either identical or very similar. To avoid duplicating documentation, this page only covers Magewire-specific and platform-specific details. For all general concepts and in-depth explanations, you can refer to the corresponding Laravel Livewire documentation.
Nothing reacts — Magewire JS never initialised
- Dist build present.
vendor/magewirephp/magewire/dist/must contain the compiled JS. If missing, runcomposer reinstall magewirephp/magewire. - Script tag emitted. The
magewire.scriptblock must render — check that your layout handle extendsdefault(ormagewire-adminin admin). - No JS errors. A single unhandled error halts Alpine initialisation.
"Checksum mismatch"
app/etc/env.php'scrypt/keychanged between the snapshot being issued and the request arriving. Reload the page.- A proxy or load balancer rewrote the request body.
Double Alpine
A theme loaded Alpine on top of Magewire's bundle. Remove the theme's Alpine; use Magewire's bundle only.
Admin components never mount
Check setup:upgrade ran after installing magewire-admin, and that the module is enabled: bin/magento module:status Magewirephp_MagewireAdmin. See Admin → How it works.
"Class not found" after installing magewire-admin
Run composer dump-autoload, then bin/magento setup:upgrade, then bin/magento cache:flush.
Debug mode
Enable Magento developer mode and spy on magewire:init, commit, and morph.updating hooks in the browser console.
Still stuck
- Search the GitHub issues.
- Open a new issue with: Magento version, Magewire version, a minimal reproduction, and the exact browser-console error.