emilianotisato / nova-tinymce

Laravel Nova TinyMCE editor (with images upload capabilities!)
MIT License
116 stars 38 forks source link

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 #65

Open WEBronckhorst opened 2 years ago

WEBronckhorst commented 2 years ago

` Class "Laravel\Nova\Nova" not found

at vendor/emilianotisato/nova-tinymce/src/FieldServiceProvider.php:27 23▕ $this->publishes([ 24▕ DIR.'/../config/nova-tinymce.php' => config_path('nova-tinymce.php'), 25▕ ], 'config'); 26▕ ➜ 27▕ Nova::serving(function (ServingNova $event) { 28▕ Nova::script('Nova-TinyMCE-tinymce', DIR.'/../dist/js/tinymce.js'); 29▕ Nova::script('Nova-TinyMCE', DIR.'/../dist/js/field.js'); 30▕ Nova::style('Nova-TinyMCE', DIR.'/../dist/css/field.css'); 31▕ });

  +7 vendor frames 

8 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Emilianotisato\NovaTinyMCE\FieldServiceProvider))

  +5 vendor frames 

14 artisan:37 Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content. `