I already went into project properties > JavaScript > Include Path > Source and excluded my node_modules directory. But, when I run validation on the project it still tries to validate all of the javascript files in that folder.
这是因为tern.java不支持include / exclude路径。
I suggest you that you install 1.0.0-SNAPSHOT which provides the capability to exclude/include folders. To do that, configure those folder with JSDT JavaScript Include Path .
I was also annoyed by all sorts of validation errors (json, html, xml...) in the node_modules directory. I didn't had at least javascript validation errors because I added only /src/main/javascript to the JS build path.
For the other errors details are here: How to exclude specific folders or files from validation in Eclipse? , in particular check-out the comment from Jonatan Cloutier.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.