Replies: 3 comments 13 replies
-
I surely don't want people to downgrade, things that worked should remain working, so repro welcome :] Maybe it even won't be bun specific, let's see. cc @xmajzel |
Beta Was this translation helpful? Give feedback.
-
I'm not sure why it shouldn't work, looks like it might be a specific case for Certainly reproduction would be fine, what I was wondering what is the name of the file compared to the name of the class within the file (@co-sic)? When fixing #5464, omitting setting Global metadata caused the same error as provided by @co-sic in
MetadataDiscovery.getSchema: if (entity instanceof EntitySchema) {
if (filepath) {
// Try comment out following line. Then run TsMorphMetadataProvider.test.ts tests to see error.
MetadataStorage.getMetadata(entity.meta.className, filepath);
}
return entity;
} cc @Ruby184 |
Beta Was this translation helpful? Give feedback.
-
@xmajzel here is the reproduction: https://github.com/co-sic/bun-playground/tree/mikro-orm . You should get the error there if you follow the README to start. If you downgrade to 6.2.1 and run again, it will work. Let me know if you need anything else |
Beta Was this translation helpful? Give feedback.
-
Hey, i think that #5464 broke folder-based entity discovery with bun. I know bun is not officially supported, so i'm not opening an issue. I don't have a reproduction yet and will just downgrade for now, but if you want to look into it, i can provide one tomorrow.
Error:
Beta Was this translation helpful? Give feedback.
All reactions