- 2020-03-30 01:40:54
The first step:
Remove eclipse's JS validation:
Windows - > Preference - > Java Script - > The Validator - > The Errors/Warnings - >
The second step:
Find the project directory and delete the following sections of the.project file in the project directory:
< Arguments> < / arguments>
< / buildCommand>
And < Nature> Org. Eclipse. The WST. JSDT. Core. JsNature< / nature>
Note that modifying the.project file may require you to restart eclipse, or close the project in eclipse, and then reopen the project.
Copy the js file somewhere, then delete the error file from eclipse, the error disappears, and then take that
Five js files are copied in.
If all else fails, open the Problems view in Eclipse, select the relevant error, and follow the prompt to resolve it.