How do I import 'axios'?

I can’t seem to import ‘axios’ package into cocos creator project.

Does anyone knows how to do it?

I was trying to follow this solution but it’s not working for me…
https://discuss.cocos2d-x.org/t/i-want-import-axios/56972

I’ve added the following codes in types.d.ts

declare module “axios/dist/axios.min.js” {
export * as default from ‘axios’;
}

and also includes the file in tsconfig.json

“files”: [“types.d.ts”]

Not sure what axios is, but from the page you link to it seems it should be supported

https://shrinktofit.github.io/packages/axios

Need to install it and import it as common js module

import axios from "axios/dist/axios.min.js";