Error on php artisan:optimize
I get the following error when running php artisan:optimize
in production.
TypeError: Livewire\Volt\FragmentAlias::encode(): Argument #2 ($path) must be of type string, null given, called in /home/deployer/claimzap.app/releases/3/vendor/livewire/volt/src/Precompilers/ExtractFragments.php on line 96
Anyone else experiencing this?
Hi there,
I've not seen this before. The only reference that I can find after a quick Google search is this thread here:
Are you using the spatie/laravel-csp
package?
After more searching I found this thread: https://github.com/livewire/volt/issues/118#issuecomment-2405898921
The user said he solved it when he says "issue was caused by other package during updates when variable was not used in template: imanghafoori1/laravel-microscope"
On that page it links to using the php artisan check:views
command in Laravel microscope. When I run that command I get:
Checking views...
./composer.json
➖ PSR-4
➖ App\: ./app/ ( 86 files )
➖ Database\Factories\: ./database/factories/ ( 2 files )
➖ Database\Seeders\: ./database/seeders/ ( 21 files )
➖ Wave\: ./wave/src/ ( 62 files )
➖ Tests\: ./tests/ ( 7 files )
1 The blade file is missing:
theme::home.blade.php does not exist
at wave/src/Http/Controllers/HomeController.php:33
______________________________________________________________________________________________________________________________________________________________________________________________________
2 The blade file is missing:
theme::profile.blade.php does not exist
at wave/src/Http/Controllers/ProfileController.php:11
______________________________________________________________________________________________________________________________________________________________________________________________________
3 The blade file is missing:
theme::settings/index.blade.php does not exist
at wave/src/Http/Controllers/SettingsController.php:20
______________________________________________________________________________________________________________________________________________________________________________________________________
time: 0.088 (sec)
- 38 view references were checked to exist. (0 skipped)
Do you think this could be causing the problem? These missing blade templates?