Home > Software design >  visual studio code give me this error in component.vue file in vue cli
visual studio code give me this error in component.vue file in vue cli

Time:06-10

Why visual studio code show me this Error

enter image description here

CodePudding user response:

Hovering over the red underline should give you a hint of what the error is. You can also check the Output with Ctrl J and clicking output, then selecting either prettier or eslint or whichever extension might be giving you the error and find more information.

CodePudding user response:

Looks like your linter has picked up on some trailing spaces.

Place your cursor next to one of the red lines and press the following for quick fixes

CTRL   .

Either that or remove any trailing spaces you have

  • Related