Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按需引入 theme、TimePicker 时,编译报错文件不存在 #7259

Closed
1 task
baimingxuan opened this issue Jan 9, 2024 · 3 comments
Closed
1 task

Comments

@baimingxuan
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

ant-design-vue@4.1.0 vue@3.4.7 vite@5.0.11 pnpm@8.14.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1、import { TimePicker } from 'ant-design-vue' 并使用
2、编译报错 [vite] Internal server error: Failed to resolve import ".../node_modules/.pnpm/ant-design-vue@4.1.0_vue@3.4.7/node_modules/ant-design-vue/es/theme/style/index" from "src/App.tsx". Does the file exist?

What is expected?

不应该编译报错

What is actually happening?

编译报错

@baimingxuan
Copy link
Author

已经解决,从lib中引用就不会报错了

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant