<template> sections, even though they work in <script lang="ts" setup>. Based on the knowledge sources, here are some things to check and try:<template>, the knowledge sources do not provide a more specific solution for your scenario. There may be an editor-specific or environment-specific issue at play. If you are using JetBrains IDEs, note there are known bugs with plugin type resolution that do not affect VS Code [Stack Overflow: Custom plugin in nuxt 3 has unknown type].<template><template><script lang="ts" setup>