element-plus / element-plus-nuxt-starter

🌰 A starter example for element-plus with Nuxt 3.
https://element-plus-nuxt.vercel.app
MIT License
299 stars 83 forks source link

Can share a example with `unplugin-vue-components`? #30

Closed zyyv closed 2 years ago

zyyv commented 2 years ago

When I try it on my local environment, I get the following error.

env: { "nuxt": "^3.0.0-rc.3", "element-plus": "^2.2.0", }

image
sxzz commented 2 years ago

https://github.com/element-plus/element-plus-nuxt-starter/blob/7227ff83c05f67ad73e329abd34f776ddd7ca307/nuxt.config.ts#L39

zyyv commented 2 years ago

Well, i mean auto import element-plus components, rather than manually importing.

Interestingly, I found this in the documentation. ( Nuxt3 docs aboout componets library )

sxzz commented 2 years ago

Hmmm i see, nuxt3 doesn't support custom resolver yet.

zyyv commented 2 years ago

I'm guessing the same, although I've tried multiple things locally with no success.

I will keep watching.