Closed afiqiqmal closed 3 years ago
Hi @afiqiqmal, Which version of Alpine are you using? And how are you loading Alpine (via NPM or CDN) and are you loading Alpine before/after Livewire? Some more code would help as well.
Im using webpack as alpine is placed in app.js
require('./bootstrap');
import 'alpinejs';
as in blade file
....
@livewireScripts
{{ Html::script('assets/app.js') }}
@livewire('livewire-ui-spotlight')
I also tried to load using CDN https://raw.githubusercontent.com/alpinejs/alpine/master/dist/alpine.js
Also give same error message
alpine.js:144 Uncaught SyntaxError: Unexpected token 'class'
Found the issue.
This package "https://github.com/renatomarinho/laravel-page-speed" cause the error.
If existing tailwind using prefix, then the spotlight would not working
I received this error,
I'm using tag "dev-php-7.4-support"
How to solve this?