-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Found 2 errors: typeof is not a constructor function type (Vue 3 + vue-tsc) #221
Comments
Thanks for reporting. Looking into it as soon as possible, in the mean time, if you have any suggestions I'm all ears. : ) |
It might be a vue-tsc specific problem or a general problem, I don't know at this point. Anyways, I'm doing a temporary workaround now; I'll basically disabled vue-filepond's type declaration file by declaring a module in file declare module 'vue-filepond' inside my Fileupload.vue component, I'm importing it then like this: import { Component } from 'vue'
import vueFilePond from 'vue-filepond'
import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type'
import FilePondPluginFileValidateSize from 'filepond-plugin-file-validate-size'
const FilepondComponent = vueFilePond(
FilePondPluginFileValidateType,
FilePondPluginFileValidateSize
) as Component I'd still prefer a typed solution but the problem is less urgent now. Thanks @rikschennink for your work |
@natemate90 Glad to hear you found a workaround. Tried to find a solution but wasn't successful, I'll look into it further when I have some time. If anyone else has an idea I'm all ears : ) |
Set |
Describe the bug
Getting the following error on build
vue-tsc --noEmit
Logs
No logs available except above error message.
To Reproduce
vue-tsc --noEmit
Expected behavior
It should not generate any errors.
Information about your project:
The text was updated successfully, but these errors were encountered: