Skip to content
Advertisement

Target class [view] does not exist. in Container.php

I have a problem with laravel and I don’t know how to fix it for now. Actually I don’t know how I face this problem, but will try to explain you what I did and what I tried for now to fix the problem.

I tried composer update and this problem occured. Now I can not type any command like php artisan make:livewire name or even php artisan --version, everytime when I try to execute commands I receive this error in console

JavaScript

Also the information from the log file

JavaScript

Solutions I have been tried till now:

1.Delete vendor folder and type composer install again but at the final stage I received this error again.

2.Delete vendor and composer.lock still without success.

3.Cleaned boostrap/cache/*.php folder and run commands again, but it not worked again.

So any advice how to fix this problem will be appreciated. Laravel Version: 7

Advertisement

Answer

The whole problem was that, another developer had commented line IlluminateViewViewServiceProvider::class, inside config/app.php providers

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement