Level 10
I beleive you need to use @push to include scripts and styles.
Example from the docs:
@push('scripts')
<script src="/example.js"></script>
@endpush
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
It seems that Vue is complaining if I try to use <script> or <style> blocks in my templates. Is this how its supposed to be or have I possibly misconfigured something?
I mean - is this normal?
Template compilation error: Tags with side effect (<script> and <style>) are ignored in client component templates
Please or to participate in this conversation.