The last item, lodash ..., should not end with a comma. Strictly speaking, that's not valid json. To quote https://www.json.org/json-en.html
An object is an unordered set of name/value pairs. An object begins with {left brace and ends with }right brace. Each name is followed by :colon and the name/value pairs are separated by ,comma.
npm tries to follow the spec and can't handle this.
This results in an error when trying to build this package.json:
npm ERR! code EJSONPARSE
npm ERR! file src/ClientApp/package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 1514 while parsing near '\''...sh": ">=4.17.21",
npm ERR! JSON.parse },
npm ERR! JSON.parse "browserslist":...'\''
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
https://github.com/dotnet/aspnetcore/blob/2a46eb8736d2e8fe5b99d3ebc6d54550bea1feeb/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/package.json#L55-L56
The last item,
lodash ...
, should not end with a comma. Strictly speaking, that's not valid json. To quote https://www.json.org/json-en.htmlnpm tries to follow the spec and can't handle this.
This results in an error when trying to build this package.json:
This seems to have been introduced by https://github.com/dotnet/aspnetcore/pull/36350