unplugin / unplugin-vue-components

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

ElMessage is not define #285

Closed Minori-ty closed 2 years ago

Minori-ty commented 2 years ago

I use typescript

image image

sxzz commented 2 years ago

This plugin is only for components. If you want to auto import ElMessage please consider to use https://github.com/antfu/unplugin-auto-import . Here is an example: https://github.com/sxzz/element-plus-best-practices