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

File '/Users/xxx/components/Logo.vue' is not a module #1709

Closed
diqye opened this issue Feb 14, 2020 · 2 comments
Closed

File '/Users/xxx/components/Logo.vue' is not a module #1709

diqye opened this issue Feb 14, 2020 · 2 comments

Comments

@diqye
Copy link

diqye commented Feb 14, 2020

  • [ x ] I have searched through existing issues
  • [ x ] I have read through docs
  • [ x ] I have read FAQ

Info

Version: 1.42.1
Commit: c47d83b293181d9be64f27ff093689e8e7aed054
Date: 2020-02-11T14:44:27.652Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 18.7.0

Problem

error: File '/Users/xxx/components/Logo.vue' is not a module in vue file

image

import vue component is ok in ts file
image

nuxt build also is ok

Reproducible Case

  • create Nuxt.js + Typescript project
@davelsan
Copy link

davelsan commented Mar 4, 2020

Can reproduce. Also, possible duplicate of #1187. As described in that issue, creating an empty export removes the error.

import Vue from 'vue'
export default Vue.extend({
  //
})

Edit: fix issue link

@diqye
Copy link
Author

diqye commented Mar 4, 2020

Thanks, to add script resolve

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