3***@qq.com
3***@qq.com
  • 发布:2024-08-22 10:50
  • 更新:2024-11-12 18:47
  • 阅读:937

[vite]: Rollup failed to resolve import "dayjs/esm/index"

分类:uni小程序sdk

小程序运行的时候使用DatetimePicker 选择器组件,今天突然间报个错误说 : [vite]: Rollup failed to resolve import "dayjs/esm/index" from "/Users/glying/Desktop/project/jzdjk-kj/zzkh-uniapp/uni_modules/uview-plus/components/u-datetime-picker/u-datetime-picker.vue". 这是怎么回事啊???

2024-08-22 10:50 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com

在uview-plus目录下,执行npm i dayjs

z***@163.com

z***@163.com

15:56:44.004[vite]: Rollup failed to resolve import "/Users/zanxiz/ProjectCode/yss-social-uniapp/uni_modules/uview-plus/components/u-slider/u-slider.vue" from"/Users/zanxiz/ProjectCode/yss-social-uniapp/uni modules/uv-slider/components/uv-slider/uv-slider.vue" .15:56:44.010 This is most likely unintended because it can break your application at runtime.15:56:44.016 If you do want to externalize this module explicitly add it to15:56:44.017`build.rollup0ptions.external
请问这个问题怎么解决我在nvue 使用了slider就有这个问题

要回复问题请先登录注册