We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157
Darwin 23.0.0 arm64 arm
Create 2 entities (in separate files) and reference each other, one with OneToMany and the other with ManyToOne.
Execute bun test and the error throws
bun test
Execute and work like bun run testor bun run main.tscommands
bun run test
bun run main.ts
test.spec.ts: 15 | fieldName: 'id_client', 16 | nullable: true, 17 | defaultRaw: `NULL`, 18 | index: 'id_client', 19 | }) 20 | user: User; ^ ReferenceError: Cannot access uninitialized variable. at /Users/enekorg/Proyectos/test/mikro-orm-repro/post.entity.ts:20:4 0 pass 1 fail Ran 1 tests across 1 files. [228.00ms]
I provide a reproduction https://github.com/Nisgrak/mikro-orm-error-bun-circular-references
The actual error is user.entity.ts:13, if you declare with strings (https://mikro-orm.io/docs/next/installation#possible-issues-with-circular-dependencies) it works, but in node works with the circular reference
The text was updated successfully, but these errors were encountered:
Duplicate of #2927
Sorry, something went wrong.
No branches or pull requests
What version of Bun is running?
1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157
What platform is your computer?
Darwin 23.0.0 arm64 arm
What steps can reproduce the bug?
Create 2 entities (in separate files) and reference each other, one with OneToMany and the other with ManyToOne.
Execute
bun test
and the error throwsWhat is the expected behavior?
Execute and work like
bun run test
orbun run main.ts
commandsWhat do you see instead?
Additional information
I provide a reproduction
https://github.com/Nisgrak/mikro-orm-error-bun-circular-references
The actual error is user.entity.ts:13, if you declare with strings (https://mikro-orm.io/docs/next/installation#possible-issues-with-circular-dependencies) it works, but in node works with the circular reference
The text was updated successfully, but these errors were encountered: