-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Description
For example, when you import a TS file into App.vue and access an exported member...
// App.vue
<script lang="ts">
import { count } from "./foo"
export default {
data: () => ({ count })
}
</script>... you get an Failed to load module script error:

vite/esbuild creates a foo resource without the .js/.ts extension. The JS file is also not accessible if you call it directly like http://localhost:3000/<path/to/foo.js>?t=<hash>.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels