I am trying to setup a Vue3 project with Typescript.
I get the error: "File '/home/.../src/App.vue.ts' is not a module".
When using Javascript in main.js, it works fine, but when renaming it to main.ts, I am unable to import ".vue" files.
Main.ts:
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
createApp(App).use(router).mount('#app');
Now, when running yarn serve, the output shows:
ERROR in src/main.ts:2:17
TS2306: File '/home/.../src/App.vue.ts' is not a module.
1 | import { createApp } from 'vue';
> 2 | import App from './App.vue';
| ^^^^^^^^^^^
3 | import router from './router';
What is the way to make Typescript understand .vue-files?