解决Rollup failed to resolve import “html2canvas“ from “src/views/super/drag/page/useExportImage.ts“.
其实是找不到html2canvas需下载依赖。jeecgbootvue3打包报错。这里引入不报红就可以正常打包了。
·
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
这里引入不报红就可以正常打包了
更多推荐
已为社区贡献1条内容
所有评论(0)