Answers for "Uncaught ReferenceError: Livewire is not defined"

PHP
2

laravel livewire livewire.js 404 not found

/*
in Laravel
livewire.js can be 404 not found because your 
root directory is not set on default
to make it work:
1. go to config/livewire.php => find 'asset_url' and set it to your 
	public folder, for example: 
    'asset_url'  => "http://localhost/{you project's name}/public",
2.now run these command in command panel
	php artisan config:cache
    php artisan view:clear
    php artisan vendor:publish --tag=livewire:config
 these command just refreshing everything to make the changes come in effect
3.now try it.....i hope it will help
*/
Posted by: Guest on December-07-2020
0

Livewire is not defined localhost

may you can try this:

run: php artisan livewire:publish

then open config/livewire.php change 'asset_url' => null to 'asset_url' => \Illuminate\Support\Facades\URL::to('/')
Posted by: Guest on July-17-2021
0

laravellivewire is not defined

'asset_url'  =>  env('APP_URL', 'http://localhost'),
Posted by: Guest on August-04-2021

Code answers related to "Uncaught ReferenceError: Livewire is not defined"

Browse Popular Code Answers by Language