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
Type '{}' is not assignable to type '() => VNodeChild'. #2007
Labels
bug
Something isn't working
Comments
If it goes back to 1.0.3, it's OK |
i has the same problem |
This is the version of "@types/node": "18.8.3", in 18.8.5 which has changed. |
Thanks |
You can use these workaround, or use v1.0.6 for now. import { FunctionalComponent } from 'vue';
const render: FunctionalComponent = () => renderSlot?.render(); import { defineComponent } from 'vue';
const Chart = defineComponent({
setup() {
return () =>
h(UolChart, props.componentProps, {
default: () => h('p', props.intro),
});
},
}); |
import type { FunctionalComponent } from 'vue';
import { h } from 'vue';
const Chart: FunctionalComponent = () =>
h(UolChart, props.componentProps, {
default: () => h('p', props.intro),
}); Got me where I needed to be, thanks @johnsoncodehk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type '{}' provides no match for the signature '(): VNodeChild'.
The text was updated successfully, but these errors were encountered: