-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
TS2345: Argument of type '{}' is not assignable to parameter of type 'never' #3138
Comments
having the same issue, i guess the work around is to downgrade at this moment. |
tmp fix that works for me:
|
Can you provide ReloadPrompt.vue? |
I had the same problem when upgrading dependency in my project. During experiments, I found that for the first time the error occurs when upgrading from version 1.6.0 to version 1.6.1: Error occurs when using dynamic component, i.e.:
|
Possibly related to #3237 You can workaround the issue with dynamic components for the time being with:
|
The problem is, volar is converting |
@so1ve I updated the issue and provided the code for ReloadPrompt.vue |
@just-niko Thanks, but I just found this problem could be reproduced by any dynamic component. |
I've created a PR but I'm not sure if it is the right way to fix 🙃 |
It happened to me when I had a mixin component that did not use FIX: Make sure that all components use |
After upgrading from vue-tsc@1.6.0 to 1.6.4, I get this error when running
npm run type-check
:The error is caused by
<reload-prompt />
This is the component for which the error occurs:
Used packages:
The text was updated successfully, but these errors were encountered: