'vue3 with vite can't import .ts interface
edit: similar to vitejs bug but different because I don't reimport.
edit2: i just created a new clean project vue build tools and just selected the typescript features and it still doesn't work.
edit3: demo
I can't import the following interface:
export interface Topic {
title: string;
description: string;
}
in App.vue:
import { Topic } from "@/models/topic";
The requested module '/src/models/topic.ts' does not provide an export named 'Topic'
What is happening here? I followed this guide vue build tools
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
