--- title: "Why do I get '(intermediate value).default is not a function' while executing my Node.js function?" url: https://docs.catalyst.zoho.com/en/faq/serverless/not-node-functions/ description: "This error occurs when your Catalyst Serverless Node.js function doesn't export its code. To rectify this issue, you must export the code in your function to …" last_updated: 2026-11-13T05:00:22Z service: Serverless type: faq --- This error occurs when your Catalyst Serverless Node.js function doesn't export its code. To rectify this issue, you must export the code in your function to expose it. Ensure that you have added module.exports={module_variable_name} inside of your Node.js function.