unplugin-vue-components icon indicating copy to clipboard operation
unplugin-vue-components copied to clipboard

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

Open weijuer opened this issue 1 year ago • 1 comments

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

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

weijuer avatar Mar 16 '23 07:03 weijuer

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🫡

weijuer avatar Mar 16 '23 09:03 weijuer