Skip to content

NestJS v10 support - ReferenceError: models is not defined #488

@mipopon

Description

@mipopon

Describe the bug
NestJS v10 removed some functions from injector Module which causes the nest application to error with

    const denormalizedChannels = modules.reduce((channels, { components, metatype, relatedModules, routes }) => {
                                                ^
ReferenceError: models is not defined

To Reproduce
upgrade nestjs/core to v10

Expected behavior
A clear and concise description of what you expected to happen.
Environment

Nest version: 10.0.3

For Tooling issues:

  • Node version: 18.14.0
  • Platform: Mac

Is someone already working on the upgrade or do you accept a PR?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions