unplugin / unplugin-vue-components

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

The requested module '/node_modules/.vite/deps/ant-design-vue_es.js?v=eb12fc10' does not provide an export named 'ButtonGroup'? #619

Open weijuer opened 1 year ago

weijuer commented 1 year ago

Describe the bug

My demo is based on vite4.1.4+antd1.7.8+unplugin-vue-components.

And evething is fine, except components like Button.Group, Radio.Group etc.

I got this error

Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/ant-design-vue_es.js?v=5e693d72' does not provide an export named 'RadioButton'

Reproduction

sorry for this

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
    Memory: 3.26 GB / 15.91 GB
    Node: 14.19.0 - C:\Weijuer\Developer\nodejs\node.EXE    
    Yarn: 1.22.18 - C:\Weijuer\Developer\nodejs\yarn.CMD    
    npm: 6.14.16 - C:\Weijuer\Developer\nodejs\npm.CMD
  Browsers:
    Chrome: 109.0.5414.120
    Edge: Spartan (44.22621.1265.0), Chromium (107.0.1418.56)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

Validations

weijuer commented 1 year ago

I've already saw the note at line 257, here But what should I do if I just want to use this plugin on antd1.7.8. Please provide the next suggestion, thank you🫡