# Bug I get "TypeError: [function] is not a function" when I [action, e.g. click Save]. ## Context - Framework: [framework, e.g. React 18] - Stack trace: [Paste stack trace here] - Relevant code: [Paste the function and where it is called] ## What I need 1. Explain the root cause in two sentences. 2. Give the smallest code change that fixes it. 3. Tell me how to confirm the fix. ## Rules - Do not rewrite unrelated code. - If you need more context, ask before guessing.
Write better AI coding prompts and get working code on the first try — free at zoeyprompts.com.