Ensure that a single type parameter T includes a trailing comma. For example: <T,>. (3:29)
export const toggleItem = <T>(
How can I resolve this error? Adding <T,> causes Prettier to remove the "," when saving. I have not made any changes to the package.json, and I have already deleted node_modules and package-lock.json file. Any guidance on how to fix this would be appreciated.
Node v16.14.1 NPM 8.5.4
"@babel/core": "7.14.3",
"@babel/plugin-proposal-class-properties": "7.13.0",
"@babel/preset-env": "7.14.4",
"@babel/preset-react": "7.13.13",
"@babel/preset-typescript": "7.13.0",
"@emotion/babel-preset-css-prop": "11.2.0",
"@emotion/eslint-plugin": "11.2.0",
"@types/hammerjs": "2.0.39",
...