Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hongquan opened this issue Jul 16, 2023 · 6 comments
Open

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

hongquan opened this issue Jul 16, 2023 · 6 comments

Comments

@hongquan
Copy link

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

@jd-solanki
Copy link
Owner

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?

@hongquan
Copy link
Author

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
Copy link
Author

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

@euwei7
Copy link

euwei7 commented Jul 17, 2023

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.

@jd-solanki
Copy link
Owner

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

@QC2168
Copy link

QC2168 commented Jan 12, 2024

I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants