私はVSコード1.3.0をエディタとTypescript 2.0として使用しています。私はルートディレクトリにtsconfig.json
を持っていて、 "files":["newfile.ts"]
とnewfile.ts
のファイルプロパティは私のルートディレクトリにあります。私は npm i --save lodash
npm i @types/lodash --save
を実行し、定義ファイルをインストールしました。私のnewfile.tsに私は import * as _ from "lodash" and I'm getting a module not found error on lodash. If lodash and its type are installed, why the
モジュールが見つかりません `エラー?Typescript 2.0でモジュールが見つかりません
エディターを何度も再起動しましたが、役に立たなくなりました。
私はコマンドラインが決して存在しないというヒントが好きです。 – wootscootinboogie