laraverl 10 jetstream and livewire problem

I am working on Laravel login system the versions which I am using are Laravel 10 Jetstream 4.1 and livewire 3.0 I have an error my registration form is completely workable but after the redirecting on dashboard the dropdown of profile is not working so I can’t understand that how could I logout my account .. the console give the uncaught syntax error : invalid or unexpected token on livewire.js file at line no 9212

i am searched some commands to reinstalling of npm packages that are
php artisan config:cache
php artisan route:cache
php artisan view:cache
after deleting node-modules folder and package-lock.json reinstall npm using the command
npm install
but same error occur on dashboard
i checked manually livewire.js file but there is no error on this file at the mentioned line