-
-
Notifications
You must be signed in to change notification settings - Fork 484
Closed
Labels
Description
We have two components that import each other. This works fine in Vue but leads to lots of errors inside the components' templates displayed in vscode.
We use Vue 3 single-file components with setup
tag.
Our components look roughly like this:
MonitorChain.vue
<template>
<MonitorChainDialog v-if="condition"/>
</template>
<script setup lang="ts">
import MonitorChainDialog from '@/components/MonitorChainDialog.vue'
// ...
</script>
MonitorChainDialog .vue
<template>
<MonitorChain/>
</template>
<script setup lang="ts">
import MonitorChain from '@/components/MonitorChain.vue'
// ...
</script>
The displayed errors look like this:
Every property and imported component of both of the components is marked with "Cannot find name 'X'".
jfitzsimmons2