Closed maicss closed 1 year ago
Nuxt 似乎有自己的自动组件注册机制,我们可能不再需要 unplugin-vue-components
,而需要书写一下自定义的解析。
或者你应该尝试一下 unplugin-vue-components/nuxt
,而非 unplugin-vue-components/vite
。
等待 Nuxt 发布正式版后,我们会尝试给出一个最佳方案。
我也有同样的问题,是否可以使用这个方案?
上面的几个方案都试了下,都没弄成。 现在有解决方案了吗?
I have the same problem and am waiting for an optimal solution here.
@YunYouJun 正式版发布了!!!
Got it, working on it.
阅读 Element Plus 文档后的设置:
能正常根据项目需要,生成
components.d.ts
:但是 hot reload 失效了,项目编译正常,需要每次手动点击浏览器的刷新按钮才能更新界面。 谢谢🙏