dotnet core default react template doesn't work

Viewed 809

I'm trying to play with dotnet core and default react template available via command dotnet new react.

Command that I use to run application in PowerShell:

dotnet new react
dotnet restore
npm install
$Env:ASPNETCORE_ENVIRONMENT = "Development"
dotnet run

The problem is after app is runned and browser is opened on localhost:5000 I see error:

ERROR in [at-loader] ./node_modules/@types/react-router/lib/withRouter.d.ts:3:99 TS2314: Generic type 'PureComponent' requires 2 type argument(s). ERROR in [at-loader] ./node_modules/@types/react/index.d.ts:165:11 TS2559: Type 'Component' has no properties in common with type 'ComponentLifecycle'.

enter image description here

0 Answers
Related