Runtime errors with axios after upgrading in Bun #22573
baljimaurya
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I’m running into a weird issue in Bun and could use some advice. I recently upgraded axios from
0.21.4to1.11.0to fix a vulnerability. The build works fine, but when I run the app I get this error:Some things I’ve tried:
import axios from "axios"andimport axios from "axios/dist/node/axios.cjs"bunfig.tomlSometimes it works after a full rebuild, but not consistently.
Has anyone else run into this with Bun? What’s the best way to handle dependencies that ship both ESM and CJS builds? I want to make upgrades stable without breaking runtime.
Thanks for any tips!
Beta Was this translation helpful? Give feedback.
All reactions