This error occurs when a variable or object is undefined or null, and a property or method is being called on it. In this case, it seems that a property 'tapAsync' is being called on an undefined object or variable, resulting in the TypeError.
To fix this error, you need to check the code for any undefined objects or variables and make sure they are properly initialized and available before calling any of their properties or methods. You can also review the function or code block that is calling this method and ensure it passes the appropriate arguments to the function.