Skip to content

[Bug]: Error when running php artisan optimize #2301

@Jacobtims

Description

@Jacobtims

What happened?

When I run the php artisan optimize command, I get the following error:

 InvalidArgumentException 

  Unable to locate a class or view for component [heroicon-o-check-circle].

  at vendor/laravel/framework/src/Illuminate/View/Compilers/ComponentTagCompiler.php:315
    311▕         if (Str::startsWith($component, 'mail::')) {
    312▕             return $component;
    313▕         }
    314▕ 
  ➜ 315▕         throw new InvalidArgumentException(
    316▕             "Unable to locate a class or view for component [{$component}]."
    317▕         );
    318▕     }
    319▕ 

      +2 vendor frames 

  3   [internal]:0
      Illuminate\View\Compilers\ComponentTagCompiler::{closure:Illuminate\View\Compilers\ComponentTagCompiler::compileSelfClosingTags():215}(["<x-heroicon-o-check-circle
                    @class(                                                                                                                                                                                                    
                        [                                                                                                                                                                                                      
                            'inline-block h-5 w-5 text-green-500' => $isTailwind,                                                                                                                                              
                            'd-inline-block text-success laravel-livewire-tables-btn-small' => $isBootstrap                                                                                                                    
                        ]                                                                                                                                                                                                      
                    )                                                                                                                                                                                                          
                />", "heroicon-o-check-circle", " @class(                                                                                                                                                                      
                        [                                                                                                                                                                                                      
                            'inline-block h-5 w-5 text-green-500' => $isTailwind,                                                                                                                                              
                            'd-inline-block text-success laravel-livewire-tables-btn-small' => $isBootstrap                                                                                                                    
                        ]                                                                                                                                                                                                      
                    )                                                                                                                                                                                                          
                ", " @class(                                                                                                                                                                                                   
                        [                                                                                                                                                                                                      
                            'inline-block h-5 w-5 text-green-500' => $isTailwind,                                                                                                                                              
                            'd-inline-block text-success laravel-livewire-tables-btn-small' => $isBootstrap                                                                                                                    
                        ]                                                                                                                                                                                                      
                    )                                                                                                                                                                                                          
                ", "(                                                                                                                                                                                                          
                        [                                                                                                                                                                                                      
                            'inline-block h-5 w-5 text-green-500' => $isTailwind,                                                                                                                                              
                            'd-inline-block text-success laravel-livewire-tables-btn-small' => $isBootstrap                                                                                                                    
                        ]                                                                                                                                                                                                      
                    )"])                                                                                                                                                                                                       
      +7 vendor frames 

  11  [internal]:0
      Illuminate\Foundation\Console\ViewCacheCommand::{closure:Illuminate\Foundation\Console\ViewCacheCommand::compileViews():61}(Object(Symfony\Component\Finder\SplFileInfo), "/vendor/rappasoft/laravel-livewire-tables/src/../resources/views/includes/columns/boolean.blade.php")

How to reproduce the bug

  • Run the php artisan optimize command
  • See the error in the console

Package Version

v3.7.3

PHP Version

None

Laravel Version

8.4.12

Alpine Version

3.15.0

Theme

Bootstrap 5.x

Notes

No response

Error Message

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions