ijpatricio / mingle

Use JS components with Vue or React in a Laravel Livewire and/or Filament application
MIT License
205 stars 6 forks source link

Error on installation #4

Closed andruu closed 2 months ago

andruu commented 2 months ago

Getting the following when running php artisan mingle:install

CleanShot 2024-04-15 at 14 49 36@2x

ijpatricio commented 2 months ago

Whoops.

I should check if the view exists before trying to modify it.

The goal here is to add @stack('scripts') so that Mingle can inject the necessary code. See https://minglejs.unitedbycode.com/manual-instructions#layout-files

I'll change this. But before the package does it automatically, it's a simple step. Were you able to solve this locally?

Thanks

andruu commented 2 months ago

Yes using the manual instructions

ijpatricio commented 2 months ago

Fixed in https://github.com/ijpatricio/mingle/commit/0aacb22379fbf6f08b2043f1394e88f756c0bea9

Thank you, @andruu , for the feedback.