unplugin / unplugin-vue-components

📲 On-demand components auto importing for Vue
https://www.npmjs.com/package/unplugin-vue-components
MIT License
3.66k stars 341 forks source link

[Ant-Design-Vue] `dts` cannot work with a path. `importStyle` will throw a error. #719

Open s3xysteak opened 7 months ago

s3xysteak commented 7 months ago

Describe the bug

The dts option cannot work with a path. There is nothing will be generated after serve on. The importStyle option will throw a error with true(It is a default value).

How I create the minimal repo: pnpm create vue (all options are false) pnpm add ant-design-vue pnpm add -D unplugin-vue-components pnpm dev

Reproduction

https://github.com/s3xysteak/unplugin-vue-components-dts-bug-minirepo

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i3-10100 CPU @ 3.60GHz
    Memory: 7.19 GB / 15.90 GB
  Binaries:
    Node: 20.9.0 - ~\AppData\Local\fnm_multishells\8032_1701332906285\node.EXE
    npm: 10.1.0 - ~\AppData\Local\fnm_multishells\8032_1701332906285\npm.CMD
    pnpm: 8.11.0 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.3636.0), Chromium (119.0.2151.72)
    Internet Explorer: 11.0.19041.3636

Used Package Manager

pnpm

Validations

s3xysteak commented 7 months ago

I think it can generate all types when the serve start, just like unplugin-auto-import. That may be a simple solution.