我使用 VS Code 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
模块错误?
我已经多次重新启动我的编辑器,但无济于事。