Description
Describe the issue
When Vue imports type from another file. npm run build:registry
fails.
Registry Link
https://github.com/CodeDelegates/JS-repo-vue-TS
Reproduction Link
https://github.com/CodeDelegates/JS-repo-vue-TS
Steps to reproduce
To reproduce error:
Repo:
https://github.com/CodeDelegates/JS-repo-vue-TS
npm install
npm run build:registry
or outside of reproduction repo: ### Minimal code to replicate
<script setup lang="ts">
import type { PropType } from './type';
const props = defineProps<PropType>();
</script>
<template>
<div>
{{ value }}
</div>
</template>
type.ts
export type PropType = { value: string };
It works when PropType is defined directly in Test.vue file, but fails when imported from another file.
Validations
- I have checked other issues to see if my issue was already reported or addressed