Facing an issue with Catalyst code while code works in IDE, while I face an issue with running the same code within a Catalyst function.
{
"error": "TypeError: ABC is not a function\n at XYZ (/var/runtime/index.js:162:9)\n at process._tickCallback (internal/process/next_tick.js:68:7)"
}
In order to be deployed in Catalyst, the Node.js application must follow a certain code structure. This issue might occur if the code structure for the same is not followed. You can find the sample code structure for all Catalyst functions
here.
For Example : If your function is Advanced IO and you have used express framework, then you need to add
at the end of your function. Here app is the variable of express framework.