0
我正在使用打字稿与angulat 1.5。 我在tsconfig.json 所有必要的配置时,9运行tslint,有很多错误的项目: 它说无法找到命名空间angular - angular1.5与打印稿
Cannot find namespace angular
TS config.json看起来像
{
"compilerOptions": {
"target": "es5"
"module": "amd",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true
},
"exclude": [
"node_modules",
]
}
tsd.d.ts文件在打印文件夹中包含:
/// <reference path="angular-ui-router/angular-ui-router.d.ts" />
/// <reference path="angularjs/angular-animate.d.ts" />
/// <reference path="angularjs/angular-cookies.d.ts" />
/// <reference path="angularjs/angular-mocks.d.ts" />
/// <reference path="angularjs/angular-resource.d.ts" />
/// <reference path="angularjs/angular-sanitize.d.ts" />
/// <reference path="angularjs/angular.d.ts" />
/// <reference path="jquery/jquery.d.ts" />
/// <reference path="moment/moment-node.d.ts" />
/// <reference path="moment/moment.d.ts" />
没有人有解决方案来解决这个问题。
请添加您的项目配置。 –
增加了tsd.d.ts和tsconfig.ts,我还引用了app.ts(应用程序主模块中的tsot.d.ts)。 –