laravel/pulse

Unexpected Alpine.js Errors in Laravel Pulse Dashboard

lailabbasi opened this issue · 7 comments

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.

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?

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

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.

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

Hey there,

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

laravel new bug-report --github="--public"

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.