yakovlev-alexey / nest-next-example

Project repo for Nest.js + Next.js tutorial available on dev.to and Habr
https://dev.to/yakovlev_alexey/creating-a-project-with-nestjs-nextjs-3i1i
MIT License
96 stars 15 forks source link

Cannot read properties of undefined (reading 'nextConfig') #6

Open lucamortellaro opened 1 year ago

lucamortellaro commented 1 year ago

Hi everyone, I followed the guide and I reached the end of the point "Making acquaintance between the frameworks" but launching the command "start:dev" the attached error is returned. I'm using node v18.15.0 and npm v9.5.0

immagine

This is my package.json:

"dependencies": { "@nestjs/common": "^9.0.0", "@nestjs/core": "^9.0.0", "@nestjs/platform-express": "^9.0.0", "@types/react": "^18.2.8", "@types/react-dom": "^18.2.4", "eslint-config-next": "^13.4.4", "nest-next": "^10.1.0", "next": "^13.4.4", "react": "^18.2.0", "react-dom": "^18.2.0", "reflect-metadata": "^0.1.13", "rxjs": "^7.2.0" }, "devDependencies": { "@nestjs/cli": "^9.0.0", "@nestjs/schematics": "^9.0.0", "@nestjs/testing": "^9.0.0", "@types/express": "^4.17.13", "@types/jest": "29.2.4", "@types/node": "18.11.18", "@types/supertest": "^2.0.11", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "eslint": "^8.0.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "jest": "29.3.1", "prettier": "^2.3.2", "source-map-support": "^0.5.20", "supertest": "^6.1.3", "ts-jest": "29.0.3", "ts-loader": "^9.2.3", "ts-node": "^10.0.0", "tsconfig-paths": "4.1.1", "typescript": "^4.7.4" },

sinde530 commented 10 months ago

I get the same error. I hope this problem will be solved.

node v: 20.8.1 nest v: 10.0.0 next v: 14.0.3 nest-next v: 10.1.0

narendraace commented 9 months ago

Is there any update, I tried as mentioned by @sinde530 but it's not working.

image

thiagoTeams commented 2 months ago

please support next 14