@Tray2 the new is required for Volt components as mentioned in the documentation and removing it throw another error syntax error, unexpected token "extends", expecting identifier
I finally found the issue. It turns out there was a livewire attribute that was placed in the wrong location. I didn't notice it because I thought it was a comment. So instead of this:
#[Title('Feature 1')]
new class extends Component {
// Your class code here
};
It should be like this:
new #[Title('Feature 1')] class extends Component {
// Your class code here
};
I hope this helps anyone else who has encountered the same problem.