All my Livewire components have the similar structure, how about yours 🤩
@assets
@vite('resources/ts/example.ts')
@endassets
@script
<script>
Alpine.data('example', () => ({
message: 'hello',
init() {
//
}
});
</script>
@endscript
<div x-data="example">
<h1 x-text="message"></h1>
</div>