vite运行或打包时报错:Big integer literals are not available in the configured target environment (“chrome87“

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"
  }
}

猜你喜欢

转载自blog.csdn.net/qq_68155756/article/details/131656658
今日推荐