Hi Arif,
Without knowing the exact error / Studio pro version you are using, it is difficult to pinpoint the error.
However, "is not a function" has been popping up recently in a lot of forum posts.
The reason may be the same to what's happening here:
Please see here the cause and fix/workaround: https://support.mendix.com/hc/en-us/articles/28759284744348-Error-when-opening-creating-or-editing-a-microflow-or-workflow-in-Mendix-Studio-Pro-t-is-not-a-function
Best regards,
João