I recently started using Vue.js with TypeScript and stumbled upon this GitHub repository.
While working on it, I encountered an issue where I received an error while trying to import a Vue Single Component File from TypeScript. My development environment is Visual Studio Code. The error message is provided below.
main.ts:
// The Vue build version to load with the 'import' command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import * as Vue from 'vue'
import App from './App'
/* eslint-disable no-new */
new Vue({
el: '#app',
template: '<App/>',
components: { App }
})
VS Code error:
1 ERROR • main.ts [ts] Cannot find module './App'. (4 17)