出现这种错误的主要原因就是不支持ES6语法! 然后我们需要在package.json中添加1个配置
package.json
{ + "type": "module", "dependencies": { "jsencrypt": "^3.3.1", "yarn": "^1.22.19" } }