# TypeError: lambda is not a function

**URL:** <https://discourse.sst.dev/t/typeerror-lambda-is-not-a-function/2185>\
**Category:** Chapter Comments\
**Created:** [November 15, 2020, 7:30am UTC](https://discourse.sst.dev/t/typeerror-lambda-is-not-a-function/2185 "2020-11-15T07:30:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickmchou](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/nickmchou/32/1024_2.png) [@nickmchou](https://discourse.sst.dev/u/nickmchou)\
**Post date:** [November 15, 2020, 7:30am UTC](https://discourse.sst.dev/t/typeerror-lambda-is-not-a-function/2185/1 "2020-11-15T07:30:16Z")

</div>

Hello,

I am going through the tutorial and am getting this error:  
TypeError: lambda is not a function

I am on the Chapter: “Building a Serverless API” and have added the create.js file as described.

I am at the point where I am running this command: serverless invoke local --function create --path mocks/create-event.json

I am not sure what is causing the issue after my investigations.

Github containing this project:

> **[nickmchou/Athena-Test](https://github.com/nickmchou/Athena-Test)**
>
> Contribute to nickmchou/Athena-Test development by creating an account on GitHub.

Any help would be really appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [November 22, 2020, 7:12pm UTC](https://discourse.sst.dev/t/typeerror-lambda-is-not-a-function/2185/2 "2020-11-22T19:12:41Z")

</div>

Not sure what the exact issue is but the `uuid` package doesn’t seem to be in your `package.json`?
