Solution:
1. First check the html fragment. If there is no grammatical error, it is caused by a plug-in "vetur" that checks the grammatical format.
3. The solution is: vscode -> Preferences -> Settings -> Search (vetur), set vetur.validation.template to false to solve the problem.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of vscode reports error when opening vue file. For more information, please follow other related articles on the PHP Chinese website!