filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
18.98k stars 2.93k forks source link

Console errors with filaments components when using wire:navigate #8460

Closed tareq-alqadi closed 11 months ago

tareq-alqadi commented 1 year ago

Package

filament/filament

Package Version

v3

Laravel Version

v10

Livewire Version

v3

PHP Version

PHP 8.2

Problem description

When i using a wire:navigate links the the errors happened as you can see in the following picture image

I noticed this problem first time when i am working on my project, then i decide to create a fresh Laravel project with installing filament as it's described in the docs and use spa() method with create a filament user as it's described in docs.

when i login to admin panel and click the dashboard link in the sidebar the error in the previous picture thrown.

this is not the only error i faced similar problems with table and some form fields.

Expected behavior

It's supposed to navigate between pages without any error

Steps to reproduce

Just create a new Laravel project, install filament and use spa() method

Reproduction repository

https://github.com/tareq-alqadi/testNavigate.git

Relevant log output

No response

yash-tiwari18 commented 1 year ago

In my case the spa() method doesn't exist on Filament\Panel. I am getting this error Method Filament\Panel::spa does not exist.

tareq-alqadi commented 1 year ago

In my case the spa() method doesn't exist on Filament\Panel. I am getting this error Method Filament\Panel::spa does not exist.

You need to update filament to latest version or at least to v3.0.46

tabatii commented 1 year ago

same problem

franckdpt commented 1 year ago

Package

filament/filament

Package Version

v3

Laravel Version

v10

Livewire Version

v3

PHP Version

PHP 8.2

Problem description

When i using a wire:navigate links the the errors happened as you can see in the following picture image

I noticed this problem first time when i am working on my project, then i decide to create a fresh Laravel project with installing filament as it's described in the docs and use spa() method with create a filament user as it's described in docs.

when i login to admin panel and click the dashboard link in the sidebar the error in the previous picture thrown.

this is not the only error i faced similar problems with table and some form fields.

Expected behavior

It's supposed to navigate between pages without any error

Steps to reproduce

Just create a new Laravel project, install filament and use spa() method

Reproduction repository

https://github.com/tareq-alqadi/testNavigate.git

Relevant log output

No response

Same here

gyaanesh commented 1 year ago

I am too getting same errors in my console image

markpavia commented 1 year ago

I am experiencing this too, thats why I don't use the ->spa() yet. Im still waiting for a fix about this issue

tijsbakker commented 1 year ago

I'm having the same problem when I navigate to a Livewire/Volt full-page component that has a Filament\Table on it …

Scherm­afbeelding 2023-10-14 om 10 46 40
danharrin commented 1 year ago

It's an Alpine/LW bug where global stores dont work, you can submit a failing test to Livewire to get it fixed, otherwise you will need to wait for me to find time to do the same thing

tijsbakker commented 1 year ago

Thanks @danharrin , unfortunately I'm not very familiar with writing failing tests and I also don't really see how the error is related to the global store (this is also used in the rest of the site but does not produce any errors) ... what I do see however is that table.js is called twice and the $wire object/component is only found on the second call. Could the error perhaps have something to do with the moment the script is called and/or the fact that this happens twice?

danharrin commented 1 year ago

collapsedGroups is a global store

DanielSpravtsev commented 1 year ago

I'm having the same problem when I navigate to a Livewire/Volt full-page component that has a Filament\Table on it …

Scherm­afbeelding 2023-10-14 om 10 46 40

Fixed as https://github.com/filamentphp/filament/pull/9151 Update and check it

danharrin commented 1 year ago

The collapsible sidebar issue is probably still present

danharrin commented 11 months ago

Should be fixed.