Idea js file error: Import declarations are not supported by current JavaScript version

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

Guess you like

Origin blog.csdn.net/Dongguabai/article/details/89643655