Transfer: https://blog.csdn.net/qq_38446250/article/details/80276625
First, js file given below:
The following is a workaround: Click on File in the Settings
Find JavaScript in Languages & Frameworks, the version 5.1 was changed from the default 6 just fine
Finally, apply, OK. Error will not appear