Skip to content

Shared folder types and extending interface in Vue component setup error #30213

Closed
vuejs/core
#14766

Description

@bnason

Environment

Nuxt project info: 1:33:35 PM



Reproduction

https://codesandbox.io/p/devbox/lrzygp

Describe the bug

Attempting to use an interface defined in the ./shared/types folder to extend another interface results in the following error: Internal server error: [@vue/compiler-sfc] Failed to resolve extends base type.

Example:

<script setup lang="ts">
interface Props extends BudgetCategory {}

defineProps<Props>()
</script>

<template>
	<div>
		<BudgetItem v-for="item in items" v-bind="item" />
	</div>
</template>

Additional context

No response

Logs

Activity

  1. added
    🐛 bug
    🔨 p3-minor
    ❗ p4-important
    and removed
    🔨 p3-minor
    on Dec 11, 2024
  2. added theissue type on Apr 29, 2025
  3. removed
    🐛 bug
    on Apr 29, 2025
  4. danielroe commented on May 8, 2026

    @danielroe
    Member

    resolved in latest vue version 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    types❗ p4-important

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions