skip to Main Content

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


  1. Recently npx create-react-app my-app was depricated

    You can follow these alternatives of create-react-app

    1. Next.js: npx create-next-app
    2. Remix: npx create-remix
    3. Gatsby: npx create-gatsby
    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search