简体   繁体   English

带VSO CI的Asp.Net Core 2.0-tsc 2.6.2错误

[英]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管道是:

  1. Use NuGet 4.4.1 使用NuGet 4.4.1
  2. NuGet restore NuGet恢复
  3. dotnet restore 点网还原
  4. Build Web project (I am getting error at this point) 生成Web项目 (此时我遇到了错误)
  5. Deploy 部署

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.

相关问题 ASP.NET Core 2.0 Razor 与 Angular/React/等 - ASP.NET Core 2.0 Razor vs Angular/React/etc React on Asp.net core 2.0 中的子级与父级通信 - Child to parent communication in React on Asp.net core 2.0 如何从ASP.Net Core 2.0中的Post Request中接受文件和字符串数据? - How to Accept File and string data from Post Request in ASP.Net Core 2.0? 为什么不在所需的react组件中渲染待办事项? (asp.net core 2.0 / reactjs / typescript) - Why aren't todo items rendering in desired react component? (asp.net core 2.0/reactjs/typescript) 使用 ASP.Net Core 2.0 Web API 和 React.js 上传文件 - File upload with ASP.Net Core 2.0 Web API and React.js 在Azure上使用ReactJS在开发模式下发布asp.net Core 2.0 WebApp - Publishing on Azure a asp.net Core 2.0 WebApp with ReactJS on Development mode 同时向Asp.Net核心2.0 MVC应用程序(cookie)和REST API(JWT)进行身份验证 - Authenticating to Asp.Net core 2.0 MVC application (cookie) and REST API (JWT) simultaneously ASP.NET Core 2.0 react.js cookie身份验证同构获取无限循环 - Asp.net core 2.0 react.js cookie authentication isomorphic-fetch endless loop ASP.Net Core 5 中的身份验证 - Authentication in ASP.Net Core 5 使用react.js构建项目ASP.NET Core 2.0时发生node_modules / webpack / bin / webpack.js错误 - node_modules/webpack/bin/webpack.js error occur when build project asp.net core 2.0 with react.js
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM