I added a new function in demo ai app, but its not working (SaaS)

Please help me debug The function is to getEmailTemplates from a folder, I added it in main.wasp and then in demo-ai-app operations.ts
2 Replies
kapa.ai
kapa.ai•5w ago
Hi @notsure2995. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To debug the issue with your function getEmailTemplates, you need to follow these steps: 1. Check your function definition: Ensure that your function is correctly defined in the operations.ts file. If there are any syntax errors or undefined variables, it could cause the function to fail. 2. Check your function import in main.wasp: Make sure you have correctly imported your function in the main.wasp file. If the function is not properly imported, it will not be recognized by Wasp. 3. Check the function call: Ensure that you are calling the function correctly in your application. If the function expects certain parameters, make sure you are passing them correctly. 4. Check the error logs: If your function is causing an error, it should be logged in the console or the server logs. Check these logs for any error messages related to your function. 5. Debugging: If you are still unable to resolve the issue, you can debug your function by adding console.log statements or using a debugger to step through your code and identify where the issue is occurring. Unfortunately, without the specific code and error messages, it's hard to provide a more detailed solution. If you could provide more details about the issue, it would be easier to help you debug it. For more information on how to work with Wasp, you can refer to the Wasp documentation (https://wasp-lang.dev/docs). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @notsure2995, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Filip
Filip•5w ago
Hey @notsure2995, I'm happy to help, but you'll have to share more details 🙂 For example: your code, your error message, etc.
Want results from more Discord servers?
Add your server