Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1")
意思是编译无法在进行编译("chrome87", "edge88", "es2019", "firefox78", "safari13.1")
我的解决办法是升级一下vite版本就不报错了,原来是vite2x版本,升到了vite4x
可以参考一下我的依赖:
{ //package.json
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"@vue/compiler-sfc": "^3.0.4",
"vite": "^4.4.0",
"vite-plugin-components": "^0.13.3",
"vite-plugin-style-import": "^1.3.0",
"vite-plugin-top-level-await": "^1.3.1"
}
}