When I’m trying to create a react app I’m unable to do it. The documentation is different now. It’s asking to install it through next js. And when I installed it it shows the following error
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
tservernext-server.js:175:9)
at NextServer.createServer (C:Userssravamy-appnode_modulesnextdistservernext.js:179:24)
at async C:Userssravamy-appnode_modulesnextdistservernext.js:200:31
at async NextServer.prepare (C:Userssravamy-appnode_modulesnextdistservernext.js:161:24)
at async Server. (C:Userssravamy-appnode_modulesnextdistserverlibrender-server.js:128:17) {
type: ‘Error’
}
Please someone solve this error
2
Answers
Recently
npx create-react-app my-app
was depricatedYou can follow these alternatives of
create-react-app
npx create-next-app
npx create-remix
npx create-gatsby
update Next.js and related dependencies: If you are using an older version of Next.js or any related packages, it’s possible that the issue you’re encountering has already been fixed in a newer version.