Replies: 1 comment 5 replies
-
Bugs in bun should be reported to bun, they claim to be node compatible, this is their problem to solve. The proposed workaround won't work, the file name does not have to match the class name. Technically you could get around this by using https://mikro-orm.io/docs/migrations#importing-migrations-statically |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running migratior.up() on bun I'm getting migration error as MigrationClass is undefined.
Doing some debugging it appears that the Object.values returns an empty array from the dynamic import object on Bun
mikro-orm/packages/migrations/src/Migrator.ts
Lines 250 to 251 in 8799461
I'm currently using the following workaround, will open a PR if this workaround is also compatible with all supported runtimes
Beta Was this translation helpful? Give feedback.
All reactions