Closed steven7mwesigwa closed 2 years ago
I think it's same bug like : https://github.com/laravel/jetstream/pull/1032
Try replace @click with x-on:click
I believe this will take care of it https://github.com/laravel/jetstream/pull/1032
oops sorry, already posted.
@fabpl @seabasss Yes, that fixes the issue as well. Thank you very much for your contribution.š
x-on:click
works but this should be fixed right? :) I just tagged v2.7.3 which should fix this. Thanks all š
Thanks @driesvints
Description:
Immediately after clicking the "Register" button on the "/register" route, An error is thrown.
The issue comes from the fact that the compiled view version under
storage/framework/views
is failing to evaluate$@clickPrevent
.Steps To Reproduce:
Download a fresh installation of Laravel.
composer create-project laravel/laravel="8.6.11" laravel-8.83.7
Install Jetstream with Livewire and Teams.
php artisan jetstream:install livewire --teams
Finalize the installation after configuring your database.
syntax error, unexpected token "@", expecting variable or "{" or "$" (View: C:\Users\Ivan\Documents\SteveContents\GITHUB\Laravel-8.83.7\laravel-8.83.7\storage\framework\views\b1360312d9c7980bc863ac6cbcdb42d58c8ed47d.blade.php)
I made a temporary solution in the linked Stack Overflow question. Though due to my limited Livewire experience, I'm afraid the solution may affect other functionalities. As of now, everything works fine with the temporary solution.
GitHub repository to demonstrate your issue: https://github.com/steven7mwesigwa/buggy-laravel-jetstream-component
Related Stack Overflow question: https://stackoverflow.com/questions/71805796/syntax-error-unexpected-expecting-variable-t-variable-or-or/71808060#71808060
Complete Error Stack Trace: