运行npm run dev:mp-weixin报错,然而我的main.ts很干净,并且尝试过build.rollupOptions.external,并没有用
- 发布:2022-10-26 14:46
- 更新:2023-02-08 21:41
- 阅读:1237
Rollup failed to resolve import "plugin-vue:export-helper" from "src/main.ts".
varui (作者)
uniapp 运行的报错[vite]: Rollup failed to resolve import "
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
varui (作者)
降低@dcloudio/*的版本解决了,降到3.0.0-alpha-3060420220922001
-
回复 DCloud_UNI_GSQ: 我前几天执行npx @dcloudio/uvm alpha,@dcloudio/*从3.0.0-alpha-3060420220922001升级到了3.0.0-alpha-3070020230117001,vue从3.2.39升级到了3.2.45,然后也是报这个错。通过cli命令新建个项目,安装新项目对应的版本号(3.0.0-alpha-3061620221230002和vue3.2.45、vite4.0.4)就没事了。也可能是我以前的vite版本低,只有2.x,具体什么原因我也不懂,不敢随便升级了
2023-02-07 15:51