網(wǎng)站首頁 編程語言 正文
[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對項目打包時出現(xiàn)問題,有一個vue組件中引入了拖拽上傳組件,打包時提示引入了node_modules/ant-design-vue/es/upload-dragger/style/index
,但整個項目搜索后并未發(fā)下從哪里引入該樣式。
最后復(fù)制了upload
目錄將名字改成upload-dragger
,項目緊急后續(xù)再繼續(xù)研究,在此記錄一下臨時解決方案
原文鏈接:https://blog.csdn.net/lianlin21212411/article/details/124615901
- 上一篇:沒有了
- 下一篇:沒有了
相關(guān)推薦
- 2022-10-15 C++?accumulate函數(shù)詳細(xì)介紹和具體案例_C 語言
- 2022-12-21 k8s安裝CICD?devtron過程詳解_云其它
- 2022-11-18 python正則表達(dá)式對字符串的查找匹配_python
- 2022-10-31 Rust?實現(xiàn)?async/await的詳細(xì)代碼_相關(guān)技巧
- 2022-06-21 C++分析講解類的靜態(tài)成員函數(shù)如何使用_C 語言
- 2022-04-04 react報錯‘react-scripts‘ 不是內(nèi)部或外部命令,也不是可運行的程序
- 2022-05-27 C++?超詳細(xì)深入分析單例模式_C 語言
- 2023-02-05 Android?開發(fā)與代碼無關(guān)技巧詳解_Android
- 欄目分類
-
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支