網站首頁 編程語言 正文
[vite]: Rollup failed to resolve import "D:/Project/asset-manage/asset-web/node_modules/ant-design-vue/es/upload-dragger/style/index" from "src/views/assetManage/components/AttachmentList.vue".
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`
error during build:
Error: [vite]: Rollup failed to resolve import "D:/Project/asset-manage/asset-web/node_modules/ant-design-vue/es/upload-dragger/style/index" from "src/views/assetManage/components/AttachmentList.vue".
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`
at onRollupWarning (D:\Project\asset-manage\asset-web\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:39256:19)
at onwarn (D:\Project\asset-manage\asset-web\node_modules\vite\dist\node\chunks\dep-27bc1ab8.js:39072:13)
at Object.onwarn (D:\Project\asset-manage\asset-web\node_modules\rollup\dist\shared\rollup.js:23173:13)
at ModuleLoader.handleResolveId (D:\Project\asset-manage\asset-web\node_modules\rollup\dist\shared\rollup.js:22463:26)
at D:\Project\asset-manage\asset-web\node_modules\rollup\dist\shared\rollup.js:22424:26
使用vite對項目打包時出現問題,有一個vue組件中引入了拖拽上傳組件,打包時提示引入了node_modules/ant-design-vue/es/upload-dragger/style/index
,但整個項目搜索后并未發下從哪里引入該樣式。
最后復制了upload
目錄將名字改成upload-dragger
,項目緊急后續再繼續研究,在此記錄一下臨時解決方案
原文鏈接:https://blog.csdn.net/lianlin21212411/article/details/124615901
- 上一篇:沒有了
- 下一篇:沒有了
相關推薦
- 2022-10-17 C++右值引用與move和forward函數的使用詳解_C 語言
- 2022-07-26 Fatal error in launcher: Unable to create process
- 2022-08-05 C#實現動態數字時鐘和日歷_C#教程
- 2022-03-26 Postman傳遞對象參數(包含有集合對象)_相關技巧
- 2022-08-31 .Net插件框架Managed?Extensibility?Framework簡介_實用技巧
- 2022-08-11 python實現對excel中需要的數據的單元格填充顏色_python
- 2022-08-28 linux--network和NetManager沖突導致network[44649]:RTNETL
- 2024-07-18 spring @retryable不生效的一種場景
- 欄目分類
-
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支