You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
If you think it's about the ORM itself and not the Nest adapter, please provide a repro without nest involved, but my guess is its about it, so moving the issue to this repo.
I can imagine its caused by the tryRequire we do, which fails with the useFactory that has required params. See #184 for proposed solution, maybe you could verify locally if its about this.
The #184 workaround seems to be working, but it's very unintuitive. At lease it should be documented somewhere in the docs and not in an "Unanswered" issue
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
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
The text was updated successfully, but these errors were encountered: