I am trying to use axios method in my serverless app for API call to third party system. But its giving me error when I am adding it server.js
const axios = require(“axios”);
Can you please downgrade the Axios version to the last version that was built using common JS? Currently, I am using Axios version 0.27.2 and it’s working.
Thanks for your valuable feedback. After downgrading the version its working now.
Currently, I am trying to get token from third party system and its returning me below error, whereas the same code in working in plain node js project locally.