# Issue on React Course - Game Hub Section - Cannot find module '@/components/ui/provider' or its corresponding type declarations.ts(2307)

**URL:** <https://forum.codewithmosh.com/t/issue-on-react-course-game-hub-section-cannot-find-module-components-ui-provider-or-its-corresponding-type-declarations-ts-2307/30288>\
**Category:** React\
**Created:** [December 3, 2024, 2:22pm UTC](https://forum.codewithmosh.com/t/issue-on-react-course-game-hub-section-cannot-find-module-components-ui-provider-or-its-corresponding-type-declarations-ts-2307/30288 "2024-12-03T14:22:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigwatson](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@craigwatson](https://forum.codewithmosh.com/u/craigwatson)\
**Post date:** [December 3, 2024, 2:22pm UTC](https://forum.codewithmosh.com/t/issue-on-react-course-game-hub-section-cannot-find-module-components-ui-provider-or-its-corresponding-type-declarations-ts-2307/30288/1 "2024-12-03T14:22:40Z")

</div>

I am just setting up the game-hub project as part of the react 18 course and when adding chakra as it says in the docs I get this error from typescript.

I noticed that the `npm i` that is on the current docs compared to the course is quite different so I followed the docs but this error still appears.

---

<div class="post-metadata">

**Author:** ![craigwatson](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@craigwatson](https://forum.codewithmosh.com/u/craigwatson)\
**Post date:** [December 3, 2024, 2:29pm UTC](https://forum.codewithmosh.com/t/issue-on-react-course-game-hub-section-cannot-find-module-components-ui-provider-or-its-corresponding-type-declarations-ts-2307/30288/2 "2024-12-03T14:29:50Z")

</div>

Just to add to all the other answers out there that I managed to miss - the issue was with the version.

Please refer to [React 18 For Beginners, Problem with Chakra UI installation](https://forum.codewithmosh.com/t/react-18-for-beginners-problem-with-chakra-ui-installation/30029) for the answer.

---

<div class="post-metadata">

**Author:** ![suheiromari](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@suheiromari](https://forum.codewithmosh.com/u/suheiromari)\
**Post date:** [July 7, 2025, 9:51pm UTC](https://forum.codewithmosh.com/t/issue-on-react-course-game-hub-section-cannot-find-module-components-ui-provider-or-its-corresponding-type-declarations-ts-2307/30288/3 "2025-07-07T21:51:36Z")

</div>

I want to thank you for the response . I was having an error and I solved it thanks to you and your reply
