jd-solanki / anu

Anu - DX focused utility based vue component library built on top of UnoCSS & VueUse ⚡️🔥

Home Page:https://anu-vue.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when using without full install (unplugin or components)

evdevru opened this issue · comments

Installation:

`
import { AnuComponentResolver } from 'anu-vue'

Components({
extensions: ['vue'],
include: [/.vue$/, /.vue?vue/],
dts: 'src/types/components.d.ts',
resolvers: [
AnuComponentResolver(),
],
}),
`

Error with components ABtn, ASelect and may be others
Error

If install as full thats problems dosnt have

Can you run anu this repo: https://github.com/jd-solanki/anu-demo ?

Can you run anu this repo: https://github.com/jd-solanki/anu-demo ?

https://github.com/evdevru/anu-demo

Check demo repo. I remove your full install and add unplugin

demo

I will check this tonight!

Thanks for reporting ☺️

Hi 👋🏻

Sorry for being late. Actually, I forgot to update the docs. When you use unplugin-vue-component, you shouldn't remove the anu plugin registration.

Please use below code:

createApp(App)
    .use(anu)
    .mount('#app')

I have updated the anu-demo repo, please checkout this commit.

Thanks for reporting.