asantibanez / laravel-blade-sortable

Custom Blade components to add sortable/drag-and-drop HTML elements in your apps.
MIT License
409 stars 79 forks source link

Unable to render components in Laravel 7.x #1

Open juliomotol opened 3 years ago

juliomotol commented 3 years ago

When trying to render the components in Livewire, I throws:

syntax error, unexpected 'endif' (T_ENDIF), expecting end of file (View: /home/user/laravel/vendor/asantibanez/laravel-blade-sortable/resources/views/components/sortable-item.blade.php)

Livewire: 2.3.17 Laravel: 7.30.4

After further inspection, when I remove the <x-dynamic-component/> in the component's blade views, it was able to render properly.

<x-dynamic-component/> wasn't introduced until Laravel 8.x.

Maybe considering removing illuminate/support ^7.x in the composer.json

InsaneBobby commented 3 years ago

Same problem. Is it possible to publish blade template for remove <x-dynamic-component/> ?

Thanks