Skip to content

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

@midnightcodr

Description

@midnightcodr

Describe the bug
Trying out nest-next with the most current versions

    "@nestjs/common": "^9.0.0",
    "@nestjs/core": "^9.0.0",
    "@nestjs/platform-express": "^9.0.0",
    "nest-next": "^10.1.0",
    "next": "^13.4.4",

With [email protected] I am getting the following error and server is not able to start. Downgrading to a lower version such as 13.3.1 the problem went away.

  • event compiled client and server successfully in 668 ms (158 modules)
  • wait compiling...
    [Nest] 98752 - 05/25/2023, 11:11:50 PM ERROR [ExceptionHandler] Cannot read properties of undefined (reading 'nextConfig')
    TypeError: Cannot read properties of undefined (reading 'nextConfig')
    at Function. (/path/to/project/node_modules/nest-next/dist/render.module.js:37:30)
    at Generator.next ()
    at fulfilled (/path/to/project/node_modules/nest-next/dist/render.module.js:14:58)

Expected behavior
Start nest server successfully

Version

  • next.js:13.4.4
  • nest:9.0.0
  • nest-next: 10.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions