Vue3 solves the problem that the code is always marked red when using the vscode development tool to edit the vue3 project

Checked from the Internet, the plug-in has not been upgraded to the vue3 version (for example, there can be multiple root tags of the vue3 project, and there can only be one root tag of the vue2 project, and so on).

Solution 1

insert image description here
insert image description here

Then close vscode, and then restart vscode!

Solution 2

insert image description here
Uninstall and reinstall the eslint plugin, it can be solved!

Guess you like

Origin blog.csdn.net/DarlingYL/article/details/129831906