Home >Development Tools >VSCode >How to deal with errors when writing react in vscode

How to deal with errors when writing react in vscode

藏色散人
藏色散人Original
2020-03-31 09:28:382954browse

How to deal with errors when writing react in vscode

#What should I do if I get an error when writing react in vscode?

I have been studying by myself recently. When I build a project with vscode according to the tutorial on the official website, when crtl s is saved, the following syntax error is reported. I have studied for a long time, starting from eslint to building the .eslintrc file and configuring it. Finally, an error was reported. Finally, I saw a solution in a reply on a forum

How to deal with errors when writing react in vscode

Finally, I saw a solution in a reply on a forum: At least no errors are reported now. As for the reason why now Still researching. . . .

How to deal with errors when writing react in vscode

Click on javaScript and a selection language mode will appear

How to deal with errors when writing react in vscode

Select javaScript React and then no error will be reported in crtl s, only for reference. . . . .

Recommended learning: vscode tutorial

The above is the detailed content of How to deal with errors when writing react in vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn