Default netnet default pattern not working

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

.

The command I'm using to launch my app in PowerShell:

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

      

The problem is that after starting the application and opening the browser on localhost: 5000 I see the error:

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

enter image description here

+3


source to share





All Articles