我有一个带有tsconfig.json的打字稿项目,并且所有节点模块导入都有错误找不到模块。我错过了什么?适当的模块安装在node_modules文件夹,执行TSC正常工作TS Project - 无法找到模块
进口为例:import {Component, Inject} from 'angular2/core';
tsconfig.json:
{ "compilerOptions": { "target": "es5", "module": "commonjs", "experimentalDecorators": true, "experimentalAsyncFunctions": true, "emitDecoratorMetadata": true, "noImplicitAny": false, "moduleResolution": "node" }, "exclude": [ "node_modules", "dist" ] }