Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kevintherm's avatar

kevintherm wrote a reply+100 XP

4mos ago

Hey, I experienced the same thing, and i fixed it by moving the @script to a livewire component, turns out you can't use @script inside a regular view() instance it must be a livewire or volt component.