# React-testing-course setting-up starter project

**URL:** <https://forum.codewithmosh.com/t/react-testing-course-setting-up-starter-project/25431>\
**Category:** React\
**Created:** [March 3, 2024, 11:25am UTC](https://forum.codewithmosh.com/t/react-testing-course-setting-up-starter-project/25431 "2024-03-03T11:25:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flooo](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@flooo](https://forum.codewithmosh.com/u/flooo)\
**Post date:** [March 3, 2024, 11:25am UTC](https://forum.codewithmosh.com/t/react-testing-course-setting-up-starter-project/25431/1 "2024-03-03T11:25:48Z")

</div>

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  
replace  
`import { Outlet } from "react-router";`  
by :  
`import { Outlet } from "react-router-dom";`

---

<div class="post-metadata">

**Author:** ![theorion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/theorion/32/7783_2.png) [@theorion](https://forum.codewithmosh.com/u/theorion)\
**Post date:** [March 3, 2024, 5:31pm UTC](https://forum.codewithmosh.com/t/react-testing-course-setting-up-starter-project/25431/2 "2024-03-03T17:31:13Z")

</div>

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.
