'Typescript + Vite + Vue 3 syntax error not showing when component is called

i have a problem with typescript in vue 3 with "script setup (SFC)". When i call the component into (for example) App.vue and insert the props, if one of these is inserted wrong, the editor does not report the error.

An example:

enter image description here

enter image description here

The type value:

type Type = 'primary' | 'danger' | 'warning'

Why "non" type not showing error? I use PHPStorm, but this not showing also in VScode.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source