rawilk / laravel-form-components

Form components built for Tailwind & Livewire.
https://randallwilk.dev/docs/laravel-form-components
MIT License
394 stars 44 forks source link

Undefined variable $hasWireModel #82

Closed magarrent closed 1 year ago

magarrent commented 1 year ago

Laravel Form Components Version

7.1.7

Laravel Version

10

Alpine Version

3.12

Bug description

I'm getting this error with the new version. It worked since now

Undefined variable $hasWireModel

Any clue?


<x-file-pond class="h-full" wire:model="uploadedFile">
                    <x-slot name="optionsSlot">
                        maxFileSize: '10KB',
                        allowFileSizeValidation: true,
                        maxFiles: 1,
                    </x-slot>
                </x-file-pond>

image

Steps to reproduce

-

Relevant log output

-
rawilk commented 1 year ago

I'm not sure since I didn't change anything in the components with that last release. I'd try clearing the view cache.

I am going to release v8 today, which includes a revamp for a few components, including filepond; just be sure to follow the upgrade guide as there are going to be several breaking changes in the new release.

magarrent commented 1 year ago

I'm not sure since I didn't change anything in the components with that last release. I'd try clearing the view cache.

I am going to release v8 today, which includes a revamp for a few components, including filepond; just be sure to follow the upgrade guide as there are going to be several breaking changes in the new release.

Wop, yes seems that it was a cache problem! Sorry mate!!

Just ran optimize:clear and it works now