Skip to content

Cannot find module './App.vue' #1215

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

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

Cannot find module './App.vue' #1215

mludi opened this issue May 3, 2018 · 2 comments

Comments

@mludi
Copy link

mludi commented May 3, 2018

Version

3.0.0-beta.6

Reproduction link

https://github.com/mludi/vue-cli-issue

Steps to reproduce

3.0.0-beta.9

Clone the project, cd into run and run npm install

What is expected?

Visual Studio Code shows a warning in main.ts and router.ts, it cannot find module './xx.vue'

What is actually happening?

There is already a shims.d.ts file, but there is something wrong with the content.


With some modification on the shims.d.ts file it's working fine, see:

declare module '*.vue' {
    import Vue from "vue";
    export default Vue;
}
@forsartis
Copy link
Contributor

Same as #1198 and already fixed in commit 51c8090.

@mludi
Copy link
Author

mludi commented May 3, 2018

Oh sorry haven‘t seen that. Thank you!

@mludi mludi closed this as completed May 3, 2018
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