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”]