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

文章讲述了在某些浏览器环境如chrome87、edge88等不支持Bigintegerliterals时,通过升级Vite到4.x版本解决了编译错误。提到了更新后的Vite及相关插件依赖包的版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值