leaf icon indicating copy to clipboard operation
leaf copied to clipboard

Blade issue upgrading from Leaf 2.5 to Leaf 3

Open ivan-au opened this issue 1 year ago • 0 comments

Describe the bug I'm upgrading my application from Leaf v2.5 to Leaf v3 and I'm finding an issue with Blade.

To Reproduce Below is the log trace I get. It points to issues in dependencies used by Leaf. A quick Google search shows the same issue reported in Laravel and other apps.

Illuminate\Contracts\Container\BindingResolutionException thrown with message "Target class [blade.compiler] does not exist."

Stacktrace:
#19 Illuminate\Contracts\Container\BindingResolutionException in my-app\vendor\illuminate\container\Container.php:914
#18 ReflectionException in my-app\vendor\illuminate\container\Container.php:912
#17 ReflectionClass:__construct in my-app\vendor\illuminate\container\Container.php:912
#16 Illuminate\Container\Container:build in my-app\vendor\illuminate\container\Container.php:795
#15 Illuminate\Container\Container:resolve in my-app\vendor\illuminate\container\Container.php:731
#14 Illuminate\Container\Container:make in my-app\vendor\illuminate\view\ViewServiceProvider.php:168
#13 Illuminate\View\ViewServiceProvider:Illuminate\View\{closure} in my-app\vendor\illuminate\view\Engines\EngineResolver.php:55
#12 call_user_func in my-app\vendor\illuminate\view\Engines\EngineResolver.php:55
#11 Illuminate\View\Engines\EngineResolver:resolve in my-app\vendor\illuminate\view\Factory.php:310
#10 Illuminate\View\Factory:getEngineFromPath in my-app\vendor\illuminate\view\Factory.php:274
#9 Illuminate\View\Factory:viewInstance in my-app\vendor\illuminate\view\Factory.php:146
#8 Illuminate\View\Factory:make in my-app\vendor\leafs\blade\src\Blade.php:72
#7 Leaf\Blade:make in my-app\vendor\leafs\blade\src\Blade.php:61
#6 Leaf\Blade:render in my-app\app\routes.php:65
#5 {closure} in my-app\vendor\leafs\router\src\Router\Core.php:531
#4 call_user_func_array in my-app\vendor\leafs\router\src\Router\Core.php:531
#3 Leaf\Router\Core:invoke in my-app\vendor\leafs\router\src\Router\Core.php:521
#2 Leaf\Router\Core:handle in my-app\vendor\leafs\router\src\Router\Core.php:466
#1 Leaf\Router\Core:run in my-app\vendor\leafs\leaf\src\App.php:382
#0 Leaf\App:run in my-app\public\index.php:14

Expected behavior Leaf App should run

Additional context As mentioned, I'm upgrading gtom Leaf 2.5 to Leaf 3

ivan-au avatar Jun 17 '24 01:06 ivan-au