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…

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

Need to install it and import it as common js module

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