Lucy
Lucy
NNuxt
Created by Lucy on 7/8/2024 in #❓・help
Type recognised everywhere but the component
that wasn't it but changing from
defineProps<Interface>()
defineProps<Interface>()
to
defineProps<{interface: Interface}>()
defineProps<{interface: Interface}>()
worked for some reason
4 replies
NNuxt
Created by Lucy on 7/8/2024 in #❓・help
Type recognised everywhere but the component
I found this https://github.com/vuejs/core/issues/8612#issuecomment-1600030885 but when I add this to my nuxt config, I get : Internal server error: Failed to load TypeScript, which is required for resolving imported types. Please make sure "typescript is installed as a project dependency.
4 replies