No overload matches this call
You’re calling a function with arguments that don’t match any of its overload signatures.
Fix 1: Check the function signature
Hover over the function in your editor to see what arguments it expects.
// addEventListener has specific overloads
// ❌ Wrong event name
element.addEventListener("clck", handler);
// ✅ Correct
element.addEventListener("click", handler);
Fix 2: Fix the callback signature
// ❌ Wrong callback type
document.addEventListener("click", (e: KeyboardEvent) => {});
// ✅ Match the event type
document.addEventListener("click", (e: MouseEvent) => {});
Fix 3: Check library version
The overloads might have changed in a newer version. Check the library’s changelog.