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

Typescript error in VSCode when importing .vue files #1216

Closed
kevintighe opened this issue May 3, 2018 · 2 comments
Closed

Typescript error in VSCode when importing .vue files #1216

kevintighe opened this issue May 3, 2018 · 2 comments

Comments

@kevintighe
Copy link

Version

3.0.0-beta.9

Reproduction link

https://github.com/kevintighe/vue-cli-bug-repro

Steps to reproduce

  • Use vue-cli 3.0.0-beta.9
  • vue create my-app
  • Manual configuration, selecting only Typescript
  • Open folder with Visual Studio Code (1.22.2)
  • Open main.ts

What is expected?

No errors are reported in Visual Studio Code

What is actually happening?

In main.ts, the line

import App from './App.vue'

is underlined in red with the error [ts] Cannot find module './App.vue'


Note that the app builds and runs with no errors via npm run serve. The error only appears in Visual Studio Code.

@yibuyisheng
Copy link
Contributor

#1198

@Akryum Akryum closed this as completed May 3, 2018
@begonia9193
Copy link

Is this problem solved?Is this problem solved。

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

4 participants