Unable to make mikro-orm CLI work with PnP #4097
Unanswered
oliversalzburg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For reference, there is a reproduction of the issue available at https://github.com/oliversalzburg/mikro-monorepo.
I have been trying to upgrade to mikro-orm@5 and have been trying to use the CLI to generate a database for me. When I issue the command
yarn mikro-orm schema:create --run
, I get the following output:This is the result of a failing
instanceof
check, which in turn is caused by virtualized@mikro-orm/knex
packages to my understanding.From a consumer's point of view, I'm not sure how to properly consume and use the CLI package so this situation is avoided. In case anything would have to be changed in the dependencies of mikro-orm itself, I would be glad to learn about.
I have discussed this subject on the Mikro-ORM Slack, but we were unable to reach a solution. Hopefully someone here can help out.
Beta Was this translation helpful? Give feedback.
All reactions