Type 'boolean' does not satisfy the constraint 'EmitsOptions'
muety opened this issue · comments
I'm getting the following error when building my Vue app.
ERROR in /home/me/dev/my-project/frontend/node_modules/vue-chart-3/types/vueproxy.types.d.ts(13,207):
13:207 Type 'boolean' does not satisfy the constraint 'EmitsOptions'.
11 | export declare type VueProxy<PropsOptions, RawBindings, Data = DefaultData<Vue>, Computed extends ComputedOptions = DefaultComputed, Methods extends MethodOptions = DefaultMethods<Vue>> = ComponentOptions<Vue, ShallowUnwrapRef<RawBindings> & Data, Methods, Computed, PropsOptions, ExtractPropTypes<PropsOptions>> & VueConstructorProxy<PropsOptions, RawBindings, Data, Computed, Methods>;
12 | declare type VueConstructorProxy<PropsOptions, RawBindings, Data, Computed extends ComputedOptions, Methods extends MethodOptions> = VueConstructor & {
> 13 | new (...args: any[]): ComponentRenderProxy<ExtractPropTypes<PropsOptions>, ShallowUnwrapRef<RawBindings>, Data, Computed, Methods, ExtractPropTypes<PropsOptions>, ExtractDefaultPropTypes<PropsOptions>, true>;
| ^
14 | };
15 | export declare type VueInputEvent = Event & {
16 | target: HTMLInputElement;
Versions used:
"vue": "^2.6.14"
"vue-chart-3": "^0.5.11"
"chart.js": "^3.6.0"
"@vue/composition-api": "^1.4.0"
Any ideas how to solve this?
Add skipLibCheck: true
to your tsconfig.json
Thanks for your quick reply, that option fixed my build. Do you want to close this ticket or keep it open to eventually fix the issue in code?
I don't have the error at build time, so it must come from your typescript version I think!
I'll keep it open if anyone is having this error