on-internet
← Community

How to resolve RootTagMissingFromViewException error while adding new Livewire component in Laravel 8 with Jetstream

Stack Overflow ·

I'm trying to add a new Livewire component to Laravel 8 Jetstream but looks I'm doing something wrong and getting the following error. Error: Livewire\Exceptions\RootTagMissingFromViewException Livewire encountered a missing root tag when trying to render a component. When rendering a Blade view, make sure it contains a root HTML tag Route: // web.php Route::middleware('auth')->group(function() { Route::get('/newEmployee', NewEmployee::class); }); Controller: // app/Http/Livewire/NewEmployee.php namespace App\Http\Livewire; use Livewire\Component; class NewEmployee extends Component { public f

Comments

Sign in or sign up to comment and upvote.

No comments yet.