anu icon indicating copy to clipboard operation
anu copied to clipboard

Error: Argument of type '{}' is not assignable to parameter

Open hongquan opened this issue 2 years ago • 6 comments

I create a project with command

$ yarn create vite

then start to integrate anu, following this, but I got this error regarding to anu components:

image

hongquan avatar Jul 16 '23 17:07 hongquan

Are getting this error if you clone anu-demo under my account.

Can you please provide minimal reproducible example so I can take a look?

jd-solanki avatar Jul 16 '23 18:07 jd-solanki

Hi, this is the reproducible example: https://bitbucket.org/hongquan/anu-ts-error/ In this example, I set registerComponents to false and do import ABtn manually (in HelloWorld.vue component).

hongquan avatar Jul 16 '23 18:07 hongquan

Note, the vite build run successfully if I remove registerComponents option, and remove the import { ABtn } from 'anu-vue' line. But then Volar failed to infer the type of component. image

hongquan avatar Jul 16 '23 18:07 hongquan

Are getting this error if you clone anu-demo under my account.

Can you please provide minimal reproducible example so I can take a look?

I also have this issue, and tree shaking is not working.

euwei7 avatar Jul 17 '23 07:07 euwei7

Thanks for reporting, I can reproduce this at my end.

jd-solanki avatar Jul 18 '23 09:07 jd-solanki

I have the same problem.

QC2168 avatar Jan 12 '24 13:01 QC2168