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

Antdv component does not display in build(production) mode and setup syntax mode #529

Open
5 tasks done
kenetkang opened this issue Sep 13, 2024 · 0 comments
Open
5 tasks done

Comments

@kenetkang
Copy link

Describe the bug

antdv 组件setup语法糖模式下生产版不显示

ACard ASteps AStep 在开发时正常, 发行后, ACard ASteps AStep组件效果没有了

临时弥补:
import { Steps as ASteps, Step as AStep } from 'ant-design-vue';
显式import 后, 问题解决

附:
// 自动引入 AntDesignVue
resolvers: [
AntDesignVueResolver({
importStyle: false,
resolveIcons: true,
}),
],

Reproduction

unplugin-vue-components@0.27.4 ant-design-vue@4.2.1

System Info

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 120.58 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
    pnpm: 9.7.0 - ~/.nvm/versions/node/v20.16.0/bin/pnpm
  Browsers:
    Chrome: 128.0.6613.121
    Safari: 17.6

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.
@kenetkang kenetkang changed the title antdv 组件setup语法糖模式下生产版不显示 Antdv component does not display in build(production) mode and setup syntax mode Sep 20, 2024
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