-
Notifications
You must be signed in to change notification settings - Fork 287
Closed
Description
Version
1.5.3
Vue Version
3.2.47
Link to minimal reproduction
Failed to resolve import "vue-devui/menu-item/index.es.js" from "src\components\TopMenu.vue". Does the file exist?
09:46:35 [vite] Internal server error: Failed to resolve import "vue-devui/menu-item/index.es.js" from "src\components\TopMenu.vue". Does the file exist?
Plugin: vite:import-analysis
File: D:/document/IT/python_project/MOSYNX/iceberg/tools/log-web/src/components/TopMenu.vue:2:54
- 目录下寻找过, 的确不存在
vue-devui/menu-item/index.es.js, menu-item 的定义似乎写在了vue-devui/menu/index.es.js里, 如上图. 其它组件应该也有类似问题
Step to reproduce
- vite 创建 vue3 项目, 按官方文档配置好组件按需自动导入
- 在 APP.vue 文件中写内容如下
<template>
<d-menu mode="horizontal">
<d-menu-item key="logo">TEST</d-menu-item>
</d-menu>
</template>- 运行 vue 项目
What is expected
解决bug, 检查其它组件是否存在类似情况
What is actually happening
No response
Any additional comments (optional)
No response
GaoNeng-wWw and chensongbai911
Metadata
Metadata
Assignees
Labels
No labels
