We recently started to upgrade from Quasar v1 to Quasar v2 (from Vue 2 to Vue 3).
This code worked fine before:
// src/pages/myComponent.vue
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
props: {
appId: {
type: String,
required: true,
},
},
setup(props) {
if (!props.appId) {
console.error('No application ID provided to load the correct form')
}
},
})
</script>
But with Vue 3 we get an eslint warning:
WARNING in src/pages/myComponent.vue @typescript-eslint/no-unsafe-member-access: Unsafe member access .appId on an
anyvalue.
It seems like props is always recognized as type any even though when hovering within vscode it does show the correct types:
The Vue 3 recommendations have also been followed correctly. What are we missing here?
