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

MooseSaid's avatar

VS Code Vetur extension failing to read VueJS with InertiaJS files

I started working on a new Laravel, Vue and inertiaJS project and I'm using VS code editor. The problem I'm having is that Vetur isn't getting that I'm using Inertia not pure Vue components; therefore, It keeps on highlighting everything in red because It assumes that everything is unidentified and unknown.

The below image is to demonstrate what I mean:

VS Code showing errors

Is there a way I can work with InertiaJS on VS Code without having these disturbing errors everywhere and see only valid errors?

0 likes
1 reply
MooseSaid's avatar
MooseSaid
OP
Best Answer
Level 4

Vetur is deprecated, which is likely the cause of the problem. Switch to Volar.

1 like

Please or to participate in this conversation.