Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Alpine.js Errors in Laravel Pulse Dashboard #370

Open
lailabbasi opened this issue May 9, 2024 · 6 comments
Open

Unexpected Alpine.js Errors in Laravel Pulse Dashboard #370

lailabbasi opened this issue May 9, 2024 · 6 comments
Assignees

Comments

@lailabbasi
Copy link

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
Copy link
Member

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
Copy link
Author

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

@timacdonald
Copy link
Member

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
Copy link
Member

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

@lailabbasi
Copy link
Author

image

@timacdonald
Copy link
Member

Hey there,

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants