This is expected as last I checked axios requests aren't supported in the Edge runtime. I've experienced this even on classes I expected to be server-side only.
I recommend using fetch anywhere.
Agreed
one time i had to use axios recently becuase it behaved just like curl. i had an api that wouldn't work with fetch.