First open the settings;
Then search tsconfig and find the Check JS Experimental Decorators option;
Finally cancel Just check this option.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of js file in vscode prompts typescript syntax error. For more information, please follow other related articles on the PHP Chinese website!