Trying to set up the Volar VSCode extension for a NuxtJS / Typescript project and facing two issues in .vue file templates. Followed the installation guide for Vue 2 and Typescript, and enabled Take Over mode.
Solved some codebase issues with the extension but these two remain.
Vue 3 deprecation warnings
(deprecation COMPILER_V_ON_NATIVE) .native modifier for v-on has been removed as is no longer necessary.
Details: https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.htmlvue(COMPILER_V_ON_NATIVE)
Looking to silence these warnings as still using Vue 2 (NuxtJS not compatible with Vue 3 yet).
Custom event handlers, like this one on a custom <Modal>
component.
@modal-confirmation="onModalConfirmed"
const onModalConfirmed = (modalConfirmation: ModalConfirmation) => {};
Type '(modalConfirmation: ModalConfirmation) => void' is not assignable to type '(...payload: unknown[]) => unknown'.
Types of parameters 'modalConfirmation' and 'payload' are incompatible.ts(2322)
Has anyone dealt with this scenario before?