# Importmodule error for 'serverless-http'?

**URL:** <https://forum.serverless.com/t/importmodule-error-for-serverless-http/11800>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [June 18, 2020, 9:16am UTC](https://forum.serverless.com/t/importmodule-error-for-serverless-http/11800 "2020-06-18T09:16:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terribleangel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/terribleangel/32/4339_2.png) [@Terribleangel](https://forum.serverless.com/u/Terribleangel)\
**Post date:** [June 18, 2020, 9:16am UTC](https://forum.serverless.com/t/importmodule-error-for-serverless-http/11800/1 "2020-06-18T09:16:33Z")

</div>

Hey folks,  
First time dealing with serverless here. Have successfully deployed using serverless deploy after following the guide to migrating an existing express app over to serverless. But aws lambda keeps throwing an error:  
“errorType”: “Runtime.ImportModuleError”,  
“errorMessage”: “Error: Cannot find module ‘serverless-http’\nRequire stack:\n- /var/task/app.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js”,

So I’m confused. What am I doing wrong? The guide to converting an existing express app didn’t say we’d need to create an AWS Lambda Layer, but since it seems like Lambda can’t find the serverless-http module, does it mean that creating a layer is the fix?

---

<div class="post-metadata">

**Author:** ![ananya-coditas](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ananya-coditas/32/7812_2.png) [@ananya-coditas](https://forum.serverless.com/u/ananya-coditas)\
**Post date:** [February 20, 2024, 11:52am UTC](https://forum.serverless.com/t/importmodule-error-for-serverless-http/11800/2 "2024-02-20T11:52:09Z")

</div>

Hii. I am facing the same issue. Did you find a solution for this?
