# serverless function Cannot find module - azure/msal-browser

**URL:** <https://community.hubspot.com/t/serverless-function-cannot-find-module-azure-msal-browser/92389>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, professional\
**Created:** [October 23, 2023, 2:31pm UTC](https://community.hubspot.com/t/serverless-function-cannot-find-module-azure-msal-browser/92389 "2023-10-23T14:31:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sk05](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Sk05](https://community.hubspot.com/u/Sk05)\
**Post date:** [October 23, 2023, 2:31pm UTC](https://community.hubspot.com/t/serverless-function-cannot-find-module-azure-msal-browser/92389/1 "2023-10-23T14:31:49Z")

</div>

Hi Hublers,

I have created the folder called serverlessFunctions. Inside that i have installed the node package manager and added my \*@azure/msal-browse\* as dependencies.  
after that inside the serverlessFunction folder i have created the serverless functions. now my js file returning the message like  
\*Execution Time: 2586ms/nRuntime.ImportModuleError: Error: Cannot find module ‘msal-browser’

 ![Screenshot 2023-10-23 at 8.00.45 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/0/102ce3c5bee02c09e6883988cb6745542f98b3cd.jpeg)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 24, 2023, 9:03pm UTC](https://community.hubspot.com/t/serverless-function-cannot-find-module-azure-msal-browser/92389/2 "2023-10-24T21:03:21Z")

</div>

Hey, @Sk05 👋 Did you get this worked out?

If not, can you try amending your Functions folder? From serverFunctions to serverFunctions.functions From the documentation – “This folder can be named anything, but must contain the suffix `.functions`.” [Link](https://developers.hubspot.com/docs/cms/data/serverless-functions#serverless-function-folders)

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![Sk05](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@Sk05](https://community.hubspot.com/u/Sk05)\
**Post date:** [October 26, 2023, 2:23pm UTC](https://community.hubspot.com/t/serverless-function-cannot-find-module-azure-msal-browser/92389/3 "2023-10-26T14:23:18Z")

</div>

Thanks for the reply [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) Finally I understood the concept of serverless functions. This does not support a package manager other than the default. if we need any packages, we have to use the **webpack** concept to wrap them into one js file and then we can use.
