Skip to content

bug: Issues building when using vue with typescript #332

Closed
@CodeDelegates

Description

@CodeDelegates

Describe the issue

When Vue imports type from another file. npm run build:registry fails.
image

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

image
Test.vue

<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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions