jeecgbootvue3打包报错

Rollup failed to resolve import "html2canvas" from "src/views/super/drag/page/useExportImage.ts".         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`

报错截图

其实是找不到html2canvas需下载依赖

   npm install html2canvas @types/html2canvas
   # 或者
   yarn add html2canvas @types/html2canvas

这里引入不报红就可以正常打包了

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐