@redbird ,
Apologies for the delay in response.
I would suggest you to try the steps specified in this forum as it is the same issue: https://social.msdn.microsoft.com/Forums/en-US/2d5c81df-9b74-4ada-ad2c-8c4b35d7e303/typescript-azure-function-how-to-solve-quotunable-to-determine-the-primary-function-scriptquot
If this doesnt help, try creating a fresh function app project with the same code.