LoginSignup
16
6

More than 5 years have passed since last update.

Cannot find module '~/components/Card.vue'. Vetur

Last updated at Posted at 2019-04-16

Nuxt 2.6.2 プロジェクトをTypeScriptに変更してアプリケーションはうまく動いているのに、VSCodeでVuterのエラーが消えない。


Cannot find module '~/components/Card.vue'. Vetur(2073) [38, 18]

もはやお手上げと諦めていたところで、

ワークスペースでプロジェクトのフォルダを追加していたのですが、
これをファイル -> 開くでプロジェクトのフォルダを直接開いたらエラーが出なくなりました。

@rema424 さん、@peisan さんありがとうございました。

[memo]
VS Code バージョン1.33.1 (1.33.1)
Vetur 0.18.1

16
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
6