LoginSignup
1
1

More than 5 years have passed since last update.

vscodeでTypescript2.0+@typesを使用する時にエラーが出る対処

Posted at

事象

@typesで型定義を使用する場合にvscodeで赤線エラーCannnot find name hogehogeが出る。

対処

http://stackoverflow.com/questions/38268776/why-does-typescript-ignore-my-tsconfig-json-inside-visual-studio-code
ここにあるとおり、設定でTypescript2.0があるディレクトリを記載すれば良い。

所感

Projectを変える毎に設定変えるのは面倒だな・・・

1
1
0

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
1
1