Home > Article > Development Tools > 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
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. . . .
Click on javaScript and a selection language mode will appear
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!