# React

**URL:** https://forum.codewithmosh.com/c/react/8.md?page=1

[Latest](https://forum.codewithmosh.com/latest.md) · [Categories](https://forum.codewithmosh.com/categories.md)

**Page:** 2

---

## [React testing code, terminal error](https://forum.codewithmosh.com/t/react-testing-code-terminal-error/30974)

<div class="topic-metadata">

**Author:** [@Razieh](https://forum.codewithmosh.com/u/Razieh)\
**Replies:** 0\
**Last updated:** [January 1, 2025, 8:25am UTC](https://forum.codewithmosh.com/t/react-testing-code-terminal-error/30974 "2025-01-01T08:25:06Z")

</div>

Dear All I am following the react testing course and use this code to use vite in the user version to analyse my test: npm run test:ui but i face this error every 5 minutes and need to rewrite the terminal: node:ev…

---

## [Node Modules are not getting installed](https://forum.codewithmosh.com/t/node-modules-are-not-getting-installed/30745)

<div class="topic-metadata">

**Author:** [@Sarfaraj](https://forum.codewithmosh.com/u/Sarfaraj)\
**Replies:** 1\
**Last updated:** [December 30, 2024, 8:54pm UTC](https://forum.codewithmosh.com/t/node-modules-are-not-getting-installed/30745 "2024-12-30T20:54:27Z")

</div>

Hi All, When I am trying to create a React app the dependencies are not getting installed and also it showing few errors as below. It is happening when I use npm install command so does anyone have a solution for this? n…

---

## [Section: Managing components state, Exercise 13 - ultimate-react-part1](https://forum.codewithmosh.com/t/section-managing-components-state-exercise-13-ultimate-react-part1/30899)

<div class="topic-metadata">

**Author:** [@Nikzad](https://forum.codewithmosh.com/u/Nikzad)\
**Replies:** 0\
**Last updated:** [December 30, 2024, 8:43pm UTC](https://forum.codewithmosh.com/t/section-managing-components-state-exercise-13-ultimate-react-part1/30899 "2024-12-30T20:43:32Z")

</div>

My solution: ExpandableText.tsx import { useState } from "react"; interface Probs { text: string; maxChar: number; } const ExpandableText = ({ text, maxChar }: Probs) =\> { const \[innerText, setInnerText\] = useS…

---

## [React intermediate - UseMutation - Context problem](https://forum.codewithmosh.com/t/react-intermediate-usemutation-context-problem/30672)

<div class="topic-metadata">

**Author:** [@vladamaks](https://forum.codewithmosh.com/u/vladamaks)\
**Replies:** 0\
**Last updated:** [December 22, 2024, 8:39pm UTC](https://forum.codewithmosh.com/t/react-intermediate-usemutation-context-problem/30672 "2024-12-22T20:39:39Z")

</div>

When i add AddTodoContext, the problem occurs.

---

## [Chakra 3 Build Errors](https://forum.codewithmosh.com/t/chakra-3-build-errors/30610)

<div class="topic-metadata">

**Author:** [@tryingtocode123](https://forum.codewithmosh.com/u/tryingtocode123)\
**Replies:** 0\
**Last updated:** [December 19, 2024, 9:54pm UTC](https://forum.codewithmosh.com/t/chakra-3-build-errors/30610 "2024-12-19T21:54:21Z")

</div>

Taking Ultimate React Part 1, Course 39 Building for Production. Please note I decided to do the project with the latest version of Chakra (Chakra 3.2.3 for me) vs 2.x as used in the lesson. As the course instructs, I r…

---

## [Creating data - React 18 Tutorial](https://forum.codewithmosh.com/t/creating-data-react-18-tutorial/30384)

<div class="topic-metadata">

**Author:** [@swaka](https://forum.codewithmosh.com/u/swaka)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 6:45pm UTC](https://forum.codewithmosh.com/t/creating-data-react-18-tutorial/30384 "2024-12-12T18:45:53Z")

</div>

In the Creating Data video of Connecting to the Backend, Mosh does this: const addUser = () =\> { const originalUsers = \[...users\]; const newUser = { id: 0, name: "Mosh" }; setUsers(\[newUser, ...users\]);\` axios .post(…

---

## [Vitest - URL cannot be parsed](https://forum.codewithmosh.com/t/vitest-url-cannot-be-parsed/30434)

<div class="topic-metadata">

**Author:** [@Xanderie](https://forum.codewithmosh.com/u/Xanderie)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 8:36pm UTC](https://forum.codewithmosh.com/t/vitest-url-cannot-be-parsed/30434 "2024-12-10T20:36:36Z")

</div>

While working on the Vitest - React Testing Library course, on the Setting Up Mock Service Worker section, I got an error from Vitest that states “TypeError: Failed to parse URL from /categories”. I’ve read it’s an issue…

---

## [5- Accessing Query String Parameters: Updated code for query string](https://forum.codewithmosh.com/t/5-accessing-query-string-parameters-updated-code-for-query-string/30425)

<div class="topic-metadata">

**Author:** [@adam.d.benson](https://forum.codewithmosh.com/u/adam.d.benson)\
**Replies:** 0\
**Last updated:** [December 9, 2024, 4:54pm UTC](https://forum.codewithmosh.com/t/5-accessing-query-string-parameters-updated-code-for-query-string/30425 "2024-12-09T16:54:55Z")

</div>

Here is the updated code for page.tsx if you are following along in the “Mastering Next.js 13 with TypeScript/Routing and Navigation (50m)/5- Accessing Query String Parameters (7:08)” lesson. import React from "react"; …

---

## [Expense tracker App implementation code](https://forum.codewithmosh.com/t/expense-tracker-app-implementation-code/30316)

<div class="topic-metadata">

**Author:** [@GToshkova](https://forum.codewithmosh.com/u/GToshkova)\
**Replies:** 0\
**Last updated:** [December 4, 2024, 5:14pm UTC](https://forum.codewithmosh.com/t/expense-tracker-app-implementation-code/30316 "2024-12-04T17:14:09Z")

</div>

Hello everyone, I was busy doing the “Expense tracker” exercise in the React 18 course. After completing the task I decided to compare my implementation to Mosh’s. However, after checking the course repo in GitHub, I co…

---

## [React testing exercise Testing ProductImage Gallery](https://forum.codewithmosh.com/t/react-testing-exercise-testing-productimage-gallery/30242)

<div class="topic-metadata">

**Author:** [@Lenin](https://forum.codewithmosh.com/u/Lenin)\
**Replies:** 5\
**Last updated:** [December 1, 2024, 7:38am UTC](https://forum.codewithmosh.com/t/react-testing-exercise-testing-productimage-gallery/30242 "2024-12-01T07:38:43Z")

</div>

Why I’m getting the following error message.

---

## [Charkra UI Grid does not take up the entire view port](https://forum.codewithmosh.com/t/charkra-ui-grid-does-not-take-up-the-entire-view-port/30177)

<div class="topic-metadata">

**Author:** [@zbpanther](https://forum.codewithmosh.com/u/zbpanther)\
**Replies:** 1\
**Last updated:** [November 27, 2024, 3:58pm UTC](https://forum.codewithmosh.com/t/charkra-ui-grid-does-not-take-up-the-entire-view-port/30177 "2024-11-27T15:58:07Z")

</div>

I installed Chakra 2.10 because the latest version does not work with the code. I typed the code exactly as follows but the Chakra UI Grid does not take up the entire screen. code: // import { Button, ButtonGroup } fro…

---

## [Debugging in VSCode](https://forum.codewithmosh.com/t/debugging-in-vscode/30137)

<div class="topic-metadata">

**Author:** [@gwm](https://forum.codewithmosh.com/u/gwm)\
**Replies:** 0\
**Last updated:** [November 25, 2024, 4:59pm UTC](https://forum.codewithmosh.com/t/debugging-in-vscode/30137 "2024-11-25T16:59:32Z")

</div>

Struggling to complete Getting Started - Lesson 13 (Debugging in VSCode) and have been stuck for several days. A few observations about my issue: When attempting to add the configuration, I don’t see the React Native o…

---

## [I can't sign up for the RAWG website](https://forum.codewithmosh.com/t/i-cant-sign-up-for-the-rawg-website/24908)

<div class="topic-metadata">

**Author:** [@qf2172](https://forum.codewithmosh.com/u/qf2172)\
**Replies:** 12\
**Last updated:** [November 23, 2024, 5:58pm UTC](https://forum.codewithmosh.com/t/i-cant-sign-up-for-the-rawg-website/24908 "2024-11-23T17:58:43Z")

</div>

I find that I can’t sign up and log in on the RAWG website, so I can’t generate the free API for the data we need to use. I an wondering is there anyone encounter the same problem and how you fix it?

---

## [Show above problem](https://forum.codewithmosh.com/t/show-above-problem/30063)

<div class="topic-metadata">

**Author:** [@Mehdi01](https://forum.codewithmosh.com/u/Mehdi01)\
**Replies:** 1\
**Last updated:** [November 22, 2024, 5:32am UTC](https://forum.codewithmosh.com/t/show-above-problem/30063 "2024-11-22T05:32:47Z")

</div>

hi I have a problem with ‘above’ in the game hub projet i using chakra 2.10.4

---

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

<div class="topic-metadata">

**Author:** [@Yannick](https://forum.codewithmosh.com/u/Yannick)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 6:32pm UTC](https://forum.codewithmosh.com/t/react-18-for-beginners-problem-with-chakra-ui-installation/30029 "2024-11-19T18:32:05Z")

</div>

Hey, i am learning React 18, and I am on the Project session, I cannot seem to make Chakra UI because of an import that is not working for some reason, check code below: Note: The Provider import comes straight from …

---

## [Filter Game with Genre](https://forum.codewithmosh.com/t/filter-game-with-genre/30024)

<div class="topic-metadata">

**Author:** [@Oussama170](https://forum.codewithmosh.com/u/Oussama170)\
**Replies:** 0\
**Last updated:** [November 18, 2024, 2:27pm UTC](https://forum.codewithmosh.com/t/filter-game-with-genre/30024 "2024-11-18T14:27:18Z")

</div>

Hello Everyone i have Problem Issue with Filter game I did what Sr Mush doing on the Video but it in i Click on the Genre the page refresh but it Get the same Result and the same cards

---

## [React app with chakra ui](https://forum.codewithmosh.com/t/react-app-with-chakra-ui/29975)

<div class="topic-metadata">

**Author:** [@rijalsam](https://forum.codewithmosh.com/u/rijalsam)\
**Replies:** 0\
**Last updated:** [November 16, 2024, 5:29am UTC](https://forum.codewithmosh.com/t/react-app-with-chakra-ui/29975 "2024-11-16T05:29:03Z")

</div>

Hi there , i am having a difficulty to add theme in chakra ui v3.1.1. does any body know how to add dark mode in chakra ui v 3.1.1?

---

## [I have a Problem with Chakra ui for ChakraProviderProps](https://forum.codewithmosh.com/t/i-have-a-problem-with-chakra-ui-for-chakraproviderprops/29905)

<div class="topic-metadata">

**Author:** [@Oussama170](https://forum.codewithmosh.com/u/Oussama170)\
**Replies:** 2\
**Last updated:** [November 12, 2024, 10:21pm UTC](https://forum.codewithmosh.com/t/i-have-a-problem-with-chakra-ui-for-chakraproviderprops/29905 "2024-11-12T22:21:59Z")

</div>

hi Everyone I have a Problem with Chakra ui for ChakraProviderProps it Demand " Property ‘value’ is missing in type" some one Have idea it Fix it

---

## [PlatformIconList Component not Rendering the Icons](https://forum.codewithmosh.com/t/platformiconlist-component-not-rendering-the-icons/29885)

<div class="topic-metadata">

**Author:** [@ZilentBop](https://forum.codewithmosh.com/u/ZilentBop)\
**Replies:** 3\
**Last updated:** [November 12, 2024, 3:19pm UTC](https://forum.codewithmosh.com/t/platformiconlist-component-not-rendering-the-icons/29885 "2024-11-12T15:19:59Z")

</div>

Here is the error: Uncaught Error: React.Children.only expected to receive a single React element child. at Object.onlyChild \[as only\] And here is my code: import { FaWindows, FaPlaystation, FaXbox, FaApple, …

---

## [I will recommend not to buy React Course of Mosh](https://forum.codewithmosh.com/t/i-will-recommend-not-to-buy-react-course-of-mosh/14279)

<div class="topic-metadata">

**Author:** [@ayub](https://forum.codewithmosh.com/u/ayub)\
**Replies:** 6\
**Last updated:** [November 9, 2024, 4:05pm UTC](https://forum.codewithmosh.com/t/i-will-recommend-not-to-buy-react-course-of-mosh/14279 "2024-11-09T16:05:27Z")

</div>

Hi, I have directly addressed my issues associated with react version and installation to a given email address 3 times and tweeted directly to Mosh but never heard back. If would be related to buying new course–an imme…

---

## [React Intermediate Part 2 - Fetching Data](https://forum.codewithmosh.com/t/react-intermediate-part-2-fetching-data/19987)

<div class="topic-metadata">

**Author:** [@usaszerelem](https://forum.codewithmosh.com/u/usaszerelem)\
**Replies:** 6\
**Last updated:** [November 4, 2024, 8:33pm UTC](https://forum.codewithmosh.com/t/react-intermediate-part-2-fetching-data/19987 "2024-11-04T20:33:51Z")

</div>

I think to be following religiously the course material, but I am getting two errors in the below TodoList.tsx file that has me blocked. I thank you in advance for your help. Error 1 on line 18: queryKey: \[“todos”\], Th…

---

## [Installing Chakra UI](https://forum.codewithmosh.com/t/installing-chakra-ui/29397)

<div class="topic-metadata">

**Author:** [@Hitarth](https://forum.codewithmosh.com/u/Hitarth)\
**Replies:** 3\
**Last updated:** [October 28, 2024, 1:55pm UTC](https://forum.codewithmosh.com/t/installing-chakra-ui/29397 "2024-10-28T13:55:54Z")

</div>

When I followed the course and installed chakra UI, the “chakraprovider” expected arguments. I looked up everywhere and could not figure out what I am missing. Nothing in the recorded lectures or in the forum. These …

---

## [Hey I have a problem deploying my react application to vercel](https://forum.codewithmosh.com/t/hey-i-have-a-problem-deploying-my-react-application-to-vercel/28477)

<div class="topic-metadata">

**Author:** [@Hamza-Noah](https://forum.codewithmosh.com/u/Hamza-Noah)\
**Replies:** 6\
**Last updated:** [October 24, 2024, 8:58pm UTC](https://forum.codewithmosh.com/t/hey-i-have-a-problem-deploying-my-react-application-to-vercel/28477 "2024-10-24T20:58:21Z")

</div>

here is the repository link repo and here is what I am getting

---

## [Message' cannot be used as a JSX component](https://forum.codewithmosh.com/t/message-cannot-be-used-as-a-jsx-component/22293)

<div class="topic-metadata">

**Author:** [@lukesawicki](https://forum.codewithmosh.com/u/lukesawicki)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 9:09pm UTC](https://forum.codewithmosh.com/t/message-cannot-be-used-as-a-jsx-component/22293 "2024-10-22T21:09:20Z")

</div>

I had this error on the beginning of tutorial. It is very much discouraging when you start from errors. \` ‘Message’ cannot be used as a JSX component. Its type ‘() =\> void’ is not a valid JSX element type. Type ‘() =\>…

---

## [Error in React Intermediate - playground app](https://forum.codewithmosh.com/t/error-in-react-intermediate-playground-app/29386)

<div class="topic-metadata">

**Author:** [@lehaiwam](https://forum.codewithmosh.com/u/lehaiwam)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 9:30am UTC](https://forum.codewithmosh.com/t/error-in-react-intermediate-playground-app/29386 "2024-10-22T09:30:35Z")

</div>

I am getting this error in when trying to consolidate the counter state in a useReducer: \[ “message”: “Counter’ cannot be used as a JSX component.\\n Its type ‘() =\> JSX.Element’ is not a valid JSX element type.\\n T…

---

## [What is T in line 7](https://forum.codewithmosh.com/t/what-is-t-in-line-7/29293)

<div class="topic-metadata">

**Author:** [@Hamza-Noah](https://forum.codewithmosh.com/u/Hamza-Noah)\
**Replies:** 3\
**Last updated:** [October 18, 2024, 12:11am UTC](https://forum.codewithmosh.com/t/what-is-t-in-line-7/29293 "2024-10-18T00:11:21Z")

</div>

I am creating the same project Mosh creates in the React course part 1 but I do not understand a lot of things

---

## [Why my react app pushed to vercel is not being deployed](https://forum.codewithmosh.com/t/why-my-react-app-pushed-to-vercel-is-not-being-deployed/29308)

<div class="topic-metadata">

**Author:** [@Hamza-Noah](https://forum.codewithmosh.com/u/Hamza-Noah)\
**Replies:** 0\
**Last updated:** [October 17, 2024, 10:53pm UTC](https://forum.codewithmosh.com/t/why-my-react-app-pushed-to-vercel-is-not-being-deployed/29308 "2024-10-17T22:53:50Z")

</div>

I have created the project of React course part 1 and I have a repository on github looks the same untill lesson 21 in the last part of the course I tried to use vercel but it is refusing to deploy the project here is th…

---

## [Member Area showing "This page does not exist. Sorry :("](https://forum.codewithmosh.com/t/member-area-showing-this-page-does-not-exist-sorry/29277)

<div class="topic-metadata">

**Author:** [@hasanbaluch](https://forum.codewithmosh.com/u/hasanbaluch)\
**Replies:** 8\
**Last updated:** [October 16, 2024, 10:45am UTC](https://forum.codewithmosh.com/t/member-area-showing-this-page-does-not-exist-sorry/29277 "2024-10-16T10:45:23Z")

</div>

I recently purchased your React Part 1 course and have been following along daily. However, I just encountered an issue where the portal suddenly stopped working. When I try to access the Member Area, I receive a “Sorry,…

---

## [Game-hub Project/ Screenshots](https://forum.codewithmosh.com/t/game-hub-project-screenshots/28101)

<div class="topic-metadata">

**Author:** [@Razieh](https://forum.codewithmosh.com/u/Razieh)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 10:25am UTC](https://forum.codewithmosh.com/t/game-hub-project-screenshots/28101 "2024-10-16T10:25:49Z")

</div>

Hi every one In react course part 2 we add screenshots of game to the game details page. in the site when we check screenshots we see this: as we see in the pic for end point we need game\_pk which I have no idea wha…

---

## [Unable to register a new user in Authentication Module](https://forum.codewithmosh.com/t/unable-to-register-a-new-user-in-authentication-module/13596)

<div class="topic-metadata">

**Author:** [@kanachrisi](https://forum.codewithmosh.com/u/kanachrisi)\
**Replies:** 7\
**Last updated:** [October 14, 2024, 1:38pm UTC](https://forum.codewithmosh.com/t/unable-to-register-a-new-user-in-authentication-module/13596 "2024-10-14T13:38:11Z")

</div>

I am having a problem when trying to post a new user with postman on the MongoDB! I would appreciate any help

[Previous page](https://forum.codewithmosh.com/c/react/8.md)

[Next page](https://forum.codewithmosh.com/c/react/8.md?page=2)
