Level 63
You probably have more than one root element in the livewire component view.
This will not work.
<div>
...
</div>
<div>
...
</div>
But this will work.
<div>
<div>
...
</div>
<div>
...
</div>
</div>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I'm facing this issue on a livewire blade view but I'm not able to find where, so I have extremely simplified the view to a minimal view like that :
<div>
test tes test
</div>
The component is integrated like that
<body class="bg-gray-700 sm:overscroll-y-none overscroll-x-none overflow-x-hidden sm:overflow-x-auto ">
@livewire('modal-search')
@yield('body')
</body>
after that I always have the error so what can I do ? Thanks for your help,
Please or to participate in this conversation.