I'm getting a strange error as
./src/index.js Line 56:15: Parsing error: '>' expected
I followed the official guide by create-react-app for Adding TypeScript to my existing Create React App project. And after changing just the two .js files(index and App) to .tsx, the project compilation is getting failed.
I uninstalled the global create-react-app by following this troubleshooting guide
index.tsx file
import React from "react";
import ReactDOM from "react-dom";
ReactDOM.render(
<App store={store} persistor={persistor} basename={PUBLIC_URL} />,
document.getElementById("root")
);
Note: I have changed my index.js file to index.tsx but still getting error for index.js. I guess it's throwing error after compilation to .js
./src/index.js Line 56)