# Serverless Deploy - functionConfig.events.map is not a function

**URL:** <https://forum.serverless.com/t/serverless-deploy-functionconfig-events-map-is-not-a-function/12241>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [August 10, 2020, 5:38pm UTC](https://forum.serverless.com/t/serverless-deploy-functionconfig-events-map-is-not-a-function/12241 "2020-08-10T17:38:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaviKAG](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ravikag/32/5437_2.png) [@RaviKAG](https://forum.serverless.com/u/RaviKAG)\
**Post date:** [August 10, 2020, 5:38pm UTC](https://forum.serverless.com/t/serverless-deploy-functionconfig-events-map-is-not-a-function/12241/1 "2020-08-10T17:38:15Z")

</div>

I am new to serverless framework and trying to deploy the project via severless deploy ([https://serverless-stack.com/chapters/deploy-the-apis.html](https://serverless-stack.com/chapters/deploy-the-apis.html))

However, when I run serverless deploy, I get this error

functionConfig.events.map is not a function.

Appreciate any suggestion on fixing this.

---

<div class="post-metadata">

**Author:** ![hemchandhar](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@hemchandhar](https://forum.serverless.com/u/hemchandhar)\
**Post date:** [October 15, 2020, 5:09pm UTC](https://forum.serverless.com/t/serverless-deploy-functionconfig-events-map-is-not-a-function/12241/2 "2020-10-15T17:09:53Z")

</div>

U found the solution for these error?

---

<div class="post-metadata">

**Author:** ![blocrunx](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@blocrunx](https://forum.serverless.com/u/blocrunx)\
**Post date:** [October 24, 2020, 3:54pm UTC](https://forum.serverless.com/t/serverless-deploy-functionconfig-events-map-is-not-a-function/12241/3 "2020-10-24T15:54:06Z")

</div>

It is hard to say without additional information, however, as indicated by the message check the events in your .yml. That is of course, assuming you have already coded your api. The link you sent is only deployment after the api has been coded. Regarding the .yml file; I would check to ensure there is a space between your hyphen ‘-’ and ‘http:’, without the space you will surely get that error.
