0

I am new to React.js and got a setup of react application through:

npx create-next-app@latest projectname

After taking some minutes, setup completed with error:

Errors occured while react setup

I tried to research this error but didn't found a solution.

I tried to set up a React application and was expecting it to run smoothly as per documentation provided on https://react.dev/learn/start-a-new-react-project

In package.json:

React version is 19.0.0

Next.js version is 15.1.2

Below is the code of src\app\page.js :

<div className="demo"> Hello world </div>

1 Answer 1

1

This type of error often occurs when you use an unsymmetrical element that is not intended to be used in a certain way, such as wrapping a <p> tag inside another <p> tag. You can read more about it here:

1 of the solution provided in second documentation is :

suppressHydrationWarning

i have added this option in top most parent tag and error gone.

Sign up to request clarification or add additional context in comments.

1 Comment

Hello i have updated my question and provided the code to you..!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.