[英]Asp.Net Core 2.0 with VSO CI - tsc 2.6.2 error
I have Asp.Net Core 2.0 with React solution and using VSTS CI build. 我有带有React解决方案并使用VSTS CI构建的Asp.Net Core 2.0。 During the build phase, I am getting an error - 在构建阶段,我遇到一个错误-
node_modules\@types\react\index.d.ts(109,81): Error TS2344:
Build:Type 'ChangeTargetHTMLAttributes<T>' does not satisfy the
constraint 'DOMAttributes<T>'.
I am using React 15.0 and my tsconfig.json
content is - 我正在使用React 15.0,我的tsconfig.json
内容是-
{
"compilerOptions": {
"baseUrl": ".",
"module": "es2015",
"moduleResolution": "node",
"target": "es5",
"jsx": "react",
"sourceMap": true,
"skipDefaultLibCheck": true,
"strict": true,
"types": ["webpack-env"],
"noImplicitThis": false
},
"exclude": ["bin", "node_modules"]
}
My CI pipeline is: 我的CI管道是:
I was getting above error when I used "Azure Web App" template. 当我使用“ Azure Web App”模板时,出现上述错误。 When I used "ASP.NET Core" template for CI build phase and created a separate release for CD, I did not get above error. 当我在CI构建阶段使用“ ASP.NET Core”模板并为CD创建单独的发行版时,没有出现上述错误。
So basically using "ASP.NET Core" template was the right thing as I was building an ASP.NET Core solution. 因此,在构建ASP.NET Core解决方案时,基本上使用“ ASP.NET Core”模板是正确的选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.