Package is not installed properly

 "dependencies": {
    "axios": "0.21.1"
  }

This is the error I get when I invoke a function which uses the axios package.

This happens often locally but I thought in production it will be fine, but it wasn’t.

Am I missing something, maybe the version?

Please help me out here.

Thanks in advance.

Hi @Bene_Immanuel

You can’t use Axios (or any other http request package) in Frontend or Serverless Apps. You have to use the Request API to make external calls.

Rob

Thank you for the response, Rob.

But in some cases, we need to upload a file and all, right?

Does our request methods support form data?

Thank you.