We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 creating a project with the "vue-ts" template, the ts compiler is taking issue with the event-type of input-events.
yarn create @vitejs/app reproduce --template vue-ts
<input type="text" @input="e => $emit('input', e.target.value)">
yarn build
Fails with:
src/components/HelloWorld.vue:3:50 - error TS2531: Object is possibly 'null'. 3 <input type="text" @input="e => $emit('input', e.target.value)"> ~~~~~~~~ src/components/HelloWorld.vue:3:59 - error TS2339: Property 'value' does not exist on type 'EventTarget'. 3 <input type="text" @input="e => $emit('input', e.target.value)"> ~~~~~
The text was updated successfully, but these errors were encountered:
Upstream issue: vuejs/language-tools#222 vuejs/core#1359
Sorry, something went wrong.
This issue gets locked because it has been closed for more than 14 days.
No branches or pull requests
Describe the bug
When creating a project with the "vue-ts" template, the ts compiler is taking issue with the event-type of input-events.
Reproduction
yarn create @vitejs/app reproduce --template vue-ts
<input type="text" @input="e => $emit('input', e.target.value)">
somewhere in the templateyarn build
Fails with:
The text was updated successfully, but these errors were encountered: