laravel / pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.
https://pulse.laravel.com
MIT License
1.43k stars 165 forks source link

Unexpected Alpine.js Errors in Laravel Pulse Dashboard #370

Closed lailabbasi closed 4 months ago

lailabbasi commented 4 months ago

Pulse Version

1.1.0

Laravel Version

10.48.10

PHP Version

8.3.6

Livewire Version

3.4.9

Database Driver & Version

No response

Description

The Laravel Pulse dashboard is encountering Alpine.js errors, affecting its functionality. These errors include unexpected token and identifier issues, leading to malfunctioning features such as filtering based on time periods. Attached screenshot of the console log displaying the Alpine.js errors. Screenshot 2024-05-09 143559

Steps To Reproduce

Access the Laravel Pulse dashboard. Observe the console log for Alpine.js errors. Attempt to filter data based on different time periods.

timacdonald commented 4 months ago

I'm unable to replicate this in my version of Safari, Chrome, and Firefox.

It seems the JavaScript engine in your browser is struggling withouut semicolons at the end of the statements.

Can you please let me know what browser and browser version you are using?

lailabbasi commented 4 months ago

I'm using Google Chrome browser Version 124.0.6367.202 (Official Build) (64-bit)

timacdonald commented 4 months ago

As far as I can tell, this seems to be an issue with Alpine and not Pulse.

I'm unable to replicate the issue, but it seems that Alpine is not happy with multi line code without semicolons.

timacdonald commented 4 months ago

Could you expand one of those issues and capture a stacktrace for us to look at?

lailabbasi commented 4 months ago

image

timacdonald commented 4 months ago

Hey there,

Could you please create a minimal reproduction for this and we take a closer look?

laravel new bug-report --github="--public"
timacdonald commented 4 months ago

Gonna close this one as we haven't heard back and also haven't seen anyone else experience the issue.

Please feel free to ping here if you can create a reproduction library and we can look into it further.

Thanks.