Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing package #109

Open
jadersbr opened this issue Aug 31, 2024 · 0 comments
Open

Error installing package #109

jadersbr opened this issue Aug 31, 2024 · 0 comments

Comments

@jadersbr
Copy link

I am encountering the following error while trying to install on Laravel 11.21 and Filament 3.2

composer require silviolleite/laravelpwa --prefer-dist
./composer.json has been updated
Running composer update silviolleite/laravelpwa
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking silviolleite/laravelpwa (2.0.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Downloading silviolleite/laravelpwa (2.0.3)
  - Installing silviolleite/laravelpwa (2.0.3): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
   Error 
  Class "Route" not found
  at vendor\silviolleite\laravelpwa\Providers\RouteServiceProvider.php:37
     33▕      * @return void
     34▕      */
     35▕     public function map(Router $router)
     36▕     {
  ➜  37▕         \Route::group(['middleware' => 'web', 'namespace' => $this->rootUrlNamespace], function()
     38▕         {
     39▕             require DIR . '/../Http/routes.php';
     40▕         });
     41▕     }
  1   vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
      LaravelPWA\Providers\RouteServiceProvider::map(Object(Illuminate\Routing\Router))
  2   vendor\laravel\framework\src\Illuminate\Container\Util.php:43
      Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant