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

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

Open
5 tasks done
s3xysteak opened this issue Nov 30, 2023 · 1 comment
Open
5 tasks done

Comments

@s3xysteak
Copy link

s3xysteak commented Nov 30, 2023

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

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@s3xysteak
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant