-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
Crash when building with mongoose #6522
Comments
Related #6437 |
Duplicate of #3903 |
adding |
What version of Bun is running?
1.0.6+969da088f5db3258a803ec186012e30f992829b4
What platform is your computer?
Linux 5.10.16.3-microsoft-standard-WSL2 x86_64 unknown
What steps can reproduce the bug?
Make a new Bun project
mkdir mongoose-error && cd mongoose-error && bun init
(y to everything)Install
mongoose
:bun add mongoose
You don't even need to start a MongoDB server, the issue is here whenever you import and use
mongoose
.Inside
index.ts
write the following...Now bundle using
bun build ./index.ts --outdir=dist --target=bun
What is the expected behavior?
Bundles in
./dist
successfullyWhat do you see instead?
Additional information
When removing
mongoose
from the build using--external mongoose
(sobun build ./index.ts --outdir=dist --target=bun --external mongoose
) it works without any issue.The installed version is
mongoose@7.6.2
Also doesn't work on
mongoose@6.x
but works onmongoose@5.x
The text was updated successfully, but these errors were encountered: