tolking/element-pro-components

报错:在使用unplugin-vue-components 和 unplugin-auto-import这两款插件对element-plus进行按需引用时候

Closed this issue · 1 comments

congwa commented

Describe the bug

image
如果使用unplugin-vue-components 和 unplugin-auto-import这两款插件对element-plus进行按需引用,就会报如上错误。
您知道这是什么问题吗?
怎么样解决?

目前我的解决方式
image
把element-plus全量引入了,就不报这个错误了

Related version

vue 3.2.40

Link to minimal reproduction

No response

Steps to Reproduce the Bug

如果使用unplugin-vue-components 和 unplugin-auto-import这两款插件对element-plus进行按需引用,就会报如上错误。
您知道这是什么问题吗?

Expected behavior

期望能够按需引入,不报这个错误

Additional context

No response

element-plus 也需要配置按需加载