React-testing-course setting-up starter project

I found an error when npm start to launch starter project
[vite] Internal server error: Failed to resolve import “react-router” from “src/pages/admin/AdminLayout.tsx”. Does the file exist?

go to src/pages/admin/AdminLayout.tsx
import { Outlet } from "react-router";
by :
import { Outlet } from "react-router-dom";

1 Like

Yeah there are issued from time to time as react updates or even mosh might make a mistake, it’s a great chance cause you get to learn how to fix an issue you will most likely encounter again in some form. If you solve it great job, if not give us more detail of the problem and we will try to help.