Hi,
So, I’m unable to get past step 4 on this project… I’m met with the following issue when trying to npm start -
Failed to compile
./src/App.js
SyntaxError: E:\WORK STUFF\CodeAcademy\React projects\adopt-a-pet-starter\src\App.js: Unexpected token (6:47)
4 | import PetDetailsNotFound from ‘./pages/petDetailsNotFound’;
5 | import Navigation from ‘./components/navigation’;
6 | import { BrowserRouter as Router, Route } from react-router-dom;
| ^
7 |
8 | function App() {
9 | return (
at parser.next ()
at normalizeFile.next ()
at run.next ()
at transform.next ()
Blockquote
I’m not sure if this is because this project uses an older version of React Router or what, but as far as I know, using import { BrowserRouter as Router, Route } from react-router-dom; is the correct way to import the React Router library…