ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open baimingxuan opened this issue 1 year ago • 1 comments
trafficstars

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

Version

undefined

Environment

[email protected] [email protected] [email protected] [email protected]

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/[email protected][email protected]/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 avatar Jan 09 '24 15:01 baimingxuan

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

baimingxuan avatar Jan 10 '24 02:01 baimingxuan

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

github-actions[bot] avatar Mar 10 '24 02:03 github-actions[bot]