blendbyte / nova-items-field

Laravel Nova array items field with sorting & validation
MIT License
12 stars 9 forks source link

Nova 4 with Laravel 11: undefined is not an object (evaluating 'e._self._c') #16

Open Jaspur opened 3 weeks ago

Jaspur commented 3 weeks ago

Hi @bashgeek ,

Great that you forked https://github.com/dillingham/nova-items-field to make it work for Nova 4, but..

This package doesn't work for me on the latest Laravel Nova:

Scherm­afbeelding 2024-08-20 om 12 42 05

Using it like: Items::make('Options')->draggable(true)->fullWidth(true)->placeholder('Add new option')->createButtonValue('New option')->hideFromIndex()->max($this->type == 'radio' ? 2 : 10),

bashgeek commented 3 weeks ago

I'm unable to reproduce this, working totally fine for us. Even copied/used your exact line and works fine: CleanShot 2024-08-20 at 21 33 43

Maybe it's a different plugin that's interfering here? Can you provide more code that's reproducible on a clean Nova instance?

Thanks!

Jaspur commented 3 weeks ago

It's here were it fails:

Scherm­afbeelding 2024-08-20 om 15 51 47

Referring to nova-items-field

Is use the Items 3 times in the same Resource.

Jaspur commented 3 weeks ago

Ah.. found out that it doesn't work on Safari. Chrome works. Any idea what it can be? @bashgeek

bashgeek commented 3 weeks ago

Tested in Safari with multiple instances: CleanShot 2024-08-21 at 09 37 24

Working fine without errors. Can you try on a vanilla/clean Nova install and provide a code-base that reproduces the issue? Thanks!