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
When using defineComponent in Vue 2, unknown properties are infered to "any" #2505
Comments
if you set The unknown properties are infered to "any". |
@yoyo930021 I had it activated already. All my projet is written class-component style using import { Component, Vue } from 'nuxt-property-decorator';
@Component({
// ...
})
export default class SocietyUuid extends Vue {
// ...
} Current Vetur settings {
"vetur.validation.template": true,
"vetur.validation.script": true,
"vetur.format.defaultFormatter.html": "prettier",
"vetur.validation.interpolation": true,
"vetur.experimental.templateInterpolationService": true,
"vetur.completion.autoImport": true,
"vetur.completion.tagCasing": "initial",
"vetur.validation.templateProps": true,
"vetur.grammar.customBlocks": {
"page-query": "graphql",
"static-query": "graphql"
},
} |
It's a problem in |
Fixed in @vue/composition-api in new release |
Thanks for the fast fix @yoyo930021! Massive respect for your work on Vetur! |
Vetur: Restart VLS
Info
Problem
When using
defineComponent
from@vue/composition-api
, unknown properties do not throw errors in template.The text was updated successfully, but these errors were encountered: