I'm a beginner at javascript and React. I started to work on that project https://github.com/udacity/reactnd-project-myreads-starter, when I write this in the index file
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import "./index.css";
import { BrowserRouter } from "react-router-dom";
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById("root")
);
I get this error
The dependencies I have for that project
"dependencies": {
"prop-types": "^15.6.2",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-router-dom": "^6.0.2",
"react-scripts": "2.1.1"
},
I don't know whats causing this. I didn't do anything to the code except adding browser router and it was running fine when I cloned it.
