Closed TomBebb closed 1 year ago
As a temporary workaround, you can set MIKRO_ORM_ALLOW_VERSION_MISMATCH
.
We recently fixed bun install
sometimes downloading the wrong version. Upgrade to the canary Bun with bun upgrade --canary
, and the issue should be fixed. (you'll need to re-install the dependency) If you're still experiencing this problem, please re-open this issue and we'll investigate.
What version of Bun is running?
0.8.0
What platform is your computer?
Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
dependencies should be:
Run the script:
What is the expected behavior?
ORM operation should run properly with no errors, and show the output 'Database query succeeded'
What do you see instead?
Mikro ORM logs:
Additional information
Works fine on Bun v0.7.3
Seems to be related to require behaviour since if I change the getORMPackageVersion method to use async import the demo works fine: