cannot find name ‘abp’
问题
ng alain 项目升级后,运行项目后报错 cannot find name ‘abp’
解决
1.确认 tsconfig.json 同级目录下有 typings.d.ts 文件:
///<reference path="../node_modules/abp-web-resources/Abp/Framework/scripts/abp.d.ts"/>
///<reference path="../node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.d.ts"/>
///<reference path="../node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr.d.ts"/>
2.在 tsconfig.json 添加 “typings.d.ts”:
"include": [
"src/**/*.d.ts",
"typings.d.ts"
]