vite运行或打包时报错:Big integer literals are not available in the configured target environment (“chrome87“
意思是编译无法在进行编译("chrome87", "edge88", "es2019", "firefox78","safari13.1")我的解决办法是升级一下vite版本就不报错了,原来是vite2x版本,升到了vite4x可以参考一下我的依赖:
·
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"
}
}
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)