Skip to content

BindingResolutionException after upgrading to 12.0.4 #2092

@hschimpf

Description

@hschimpf

Versions:

  • laravel-modules Version: 12.0.4
  • Laravel Version: 12.19.3
  • PHP Version: 8.4.8

Description:

Seems like this commit caused it. Reverting that commit manually solves the issue.

   Illuminate\Contracts\Container\BindingResolutionException 

  Target class [cache] does not exist.

  at vendor/laravel/framework/src/Illuminate/Container/Container.php:1019
    1015▕ 
    1016▕         try {
    1017▕             $reflector = new ReflectionClass($concrete);
    1018▕         } catch (ReflectionException $e) {
  ➜ 1019▕             throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
    1020▕         }
    1021▕ 
    1022▕         // If the type is not instantiable, the developer is attempting to resolve
    1023▕         // an abstract type such as an Interface or Abstract Class and there is

Steps To Reproduce:

  • Upgrade from v12.0.3 to v12.0.4
  • composer up nwidart/laravel-modules

Temporal fix:

  • Rolled back to v12.0.3
  • composer require "nwidart/laravel-modules:^12.0 <12.0.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions