Skip to content

PNP & MikroOrm + NestJS  #195

Closed
Closed
@lmnogues

Description

@lmnogues

Describe the bug

In a repo configured to use yarn pnp, there is some issue on the configuration used by mikroOrm to start

I've put the following repo to demo the issue
https://github.com/lmnogues/mikro-orm_nestjs_pnp_issue

In the file mikro-orm.config.ts i've not setup the configUrl because I want it to be provided by the configuration module.
The migration will run, but the project will not start.

If we reset yarn to use "node-modules" by changing the .yarnrc.yaml and re-install/build & run the project it will run properly.

Reproduction

yarn install
yarn build
yarn dev

What driver are you using?

@mikro-orm/postgresql

MikroORM version

6.4.1

Node.js version

node 22.12.0 / typescript 5.7.2

Operating system

all

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions