Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor (vscode) keeps yelling at the line import App from './App' #6

Closed
sosoriov opened this issue Sep 23, 2017 · 1 comment
Closed

Comments

@sosoriov
Copy link

Hi @alexjoverm

You have done an excellent job here! thanks man.

I have small issue trying to use TS and Vue. I have followed your instructions in your post (https://alexjoverm.github.io/2017/06/28/Integrate-TypeScript-in-your-Vue-project/) and also cloning this repo both with same result.

The problem is in the main.ts file:
the compiler says:
[ts] Cannot find module './App'. (4, 17)

line:
import App from './App'

I've tried different settings without success, but if you add the vue extension to the import it works.
import App from './App.vue'

any idea?

My TS version is 2.5.2

@alexjoverm
Copy link
Owner

It seems is an issue on the vetur plugin side, but it doesn't seem its expected to be fixed. I've pushed a commit adding the .vue extension to the main.ts file though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants