pulse icon indicating copy to clipboard operation
pulse copied to clipboard

Unexpected Alpine.js Errors in Laravel Pulse Dashboard

Open lailabbasi opened this issue 1 year ago • 6 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.

lailabbasi avatar May 09 '24 12:05 lailabbasi

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?

timacdonald avatar May 12 '24 23:05 timacdonald

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

lailabbasi avatar May 13 '24 08:05 lailabbasi

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 avatar May 14 '24 00:05 timacdonald

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

timacdonald avatar May 14 '24 00:05 timacdonald

image

lailabbasi avatar May 14 '24 05:05 lailabbasi

Hey there,

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

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

timacdonald avatar May 17 '24 00:05 timacdonald

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.

timacdonald avatar May 27 '24 23:05 timacdonald