Next.js Discord

Discord Forum

Weird error on 'next dev' and 'next build'

Unanswered
Adam posted this in #help-forum
Open in Discord

23 Replies

NOTE: the project is new and setuped by
npx create-next-app@latest testapp
i tryed setuping multi projects to see if the error from me or from Next.js and i think its from Nextjs
Bonga shad
Are you getting this error while building . Static page generation for / is still timing out after 3 attempts.
I think your issues is related to package.json.
@Bonga shad Are you getting this error while building . Static page generation for / is still timing out after 3 attempts.
try making a new project by
npx create-next-app@latest

with tailwindcss no-eslint app-dir ts
and then try npm run dev or npm run build
@Adam Click to see attachment
then you will get this huge error
Bonga shad
trying...
last lines of error:
Use pastebin please @Adam
Most of us here don't download stuff from discord
Including me
just clicl expand
Bonga shad
Look . its working fine
@Adam
idk but in each new project i try to create with create-next-app i get this error after using npm run dev or npm run build

## Error
https://pastebin.com/ii1eYWNg
## package.json
{
  "name": "test",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "react": "^18",
    "react-dom": "^18",
    "next": "14.2.3"
  },
  "devDependencies": {
    "typescript": "^5",
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "postcss": "^8",
    "tailwindcss": "^3.4.1"
  }
}
-------------
i think the main error is this
any help?
Bonga shad
My issue is resolved . i switched to old commit and then switched back