NuxtN
Nuxt2y ago
3 replies
Lucy

Type recognised everywhere but the component

I declared an interface in the
/types
directory. I can use this type in
app.vue
and under
/pages
. However, when I use it in a component, I get:
Unresolvable type reference or unsupported built-in utility type
.
Here is a stackblitz replicating the issue: https://stackblitz.com/edit/github-o4bvcj?file=app.vue
If you comment out the usage of the
TileData
type in the component it starts to work again even though it's still used in
app.vue
Was this page helpful?