davidhsianturi / laravel-compass

A REST client inside your Laravel app
https://davidhsianturi.com/laravel-compass
MIT License
1.26k stars 109 forks source link

Exception on php artisan compass:build #11

Closed fatalist closed 5 years ago

fatalist commented 5 years ago
   Illuminate\Contracts\Container\BindingResolutionException  : Target [Davidhsianturi\Compass\Contracts\ApiDocsRepository] is not instantiable.

  at D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\Container.php:979
    975|         } else {
    976|             $message = "Target [$concrete] is not instantiable.";
    977|         }
    978|
  > 979|         throw new BindingResolutionException($message);
    980|     }
    981|
    982|     /**
    983|      * Throw an exception for an unresolvable primitive.

  Exception trace:

  1   Illuminate\Container\Container::notInstantiable("Davidhsianturi\Compass\Contracts\ApiDocsRepository")
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\Container.php:813

  2   Illuminate\Container\Container::build("Davidhsianturi\Compass\Contracts\ApiDocsRepository")
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\Container.php:682

  3   Illuminate\Container\Container::resolve("Davidhsianturi\Compass\Contracts\ApiDocsRepository", [])
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\Container.php:630

  4   Illuminate\Container\Container::make("Davidhsianturi\Compass\Contracts\ApiDocsRepository", [])
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:768

  5   Illuminate\Foundation\Application::make("Davidhsianturi\Compass\Contracts\ApiDocsRepository")
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:167

  6   Illuminate\Container\BoundMethod::addDependencyForCallParameter(Object(Illuminate\Foundation\Application), Object(ReflectionParameter), [], [])
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:121

  7   Illuminate\Container\BoundMethod::getMethodDependencies(Object(Illuminate\Foundation\Application), [])
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:32

  8   Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Support\helpers.php:522

  9   value(Object(Closure))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:90

  10  Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Object(Closure))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:34

  11  Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), [])
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Container\Container.php:591

  12  Illuminate\Container\Container::call()
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Console\Command.php:202

  13  Illuminate\Console\Command::execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\symfony\console\Command\Command.php:255

  14  Symfony\Component\Console\Command\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Console\Command.php:189

  15  Illuminate\Console\Command::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\symfony\console\Application.php:934

  16  Symfony\Component\Console\Application::doRunCommand(Object(Davidhsianturi\Compass\Console\BuildCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\symfony\console\Application.php:273

  17  Symfony\Component\Console\Application::doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\symfony\console\Application.php:149

  18  Symfony\Component\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Console\Application.php:90

  19  Illuminate\Console\Application::run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      D:\server\home\useresponse\application\3.3.1\frontend\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php:131

  20  Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      D:\server\home\useresponse\application\3.3.1\frontend\artisan:37

I was unable to setup it, Also there is no documentation how to use it. Nothing is working for me.

davidhsianturi commented 5 years ago

hey, @fatalist can you please provide steps to reproduce the errors? to install Laravel Compass you can read the readme.md file, also this package only support for Laravel 5,7, 5.8, and 6.0

djdivesh007 commented 4 years ago

php artisan compass:rebuild

Illuminate\Contracts\Container\BindingResolutionException : Target [Davidhsianturi\Compass\Contracts\ApiDocsRepository] is not instantiable.

at /Users/divesh/Documents/development/laravel/indianguitarists_com/vendor/laravel/framework/src/Illuminate/Container/Container.php:979 975| } else { 976| $message = "Target [$concrete] is not instantiable."; 977| } 978|

979| throw new BindingResolutionException($message); 980| } 981| 982| /* 983| Throw an exception for an unresolvable primitive.

Exception trace:

1 Illuminate\Container\Container::notInstantiable("Davidhsianturi\Compass\Contracts\ApiDocsRepository") /Users/divesh/Documents/development/laravel/indianguitarists_com/vendor/laravel/framework/src/Illuminate/Container/Container.php:813

2 Illuminate\Container\Container::build("Davidhsianturi\Compass\Contracts\ApiDocsRepository") /Users/divesh/Documents/development/laravel/indianguitarists_com/vendor/laravel/framework/src/Illuminate/Container/Container.php:682

Please use the argument -v to see more details.