Skip to content← All gravesR.I.P.
undefined is not a function
–
“It was never a function. It was never anything.”
JavaScriptNull reference
Death certificate
- Status
- 🪦 Buried
- Cause of death
- Null referenceReached for something that was not there. "Cannot read properties of undefined".
- Severity
- Medium
- Hours to kill
- 2 hours
- Killed by
- Jashanpreet
- Language
- JavaScript
- Born
- 3 Apr 2024
- Fix merged
- 4 Apr 2024
- Buried
- 15 Apr 2024
- Component
- checkout
- Symptoms
- Clicking Pay threw 'undefined is not a function' whenever the payment script loaded late.
- The fix
- Waited for the payment script to load before calling it.
Timeline
Every life of this bug, oldest first.
- 🐛
Born as “undefined is not a function”3 Apr 2024
- 🩹
Fix merged4 Apr 2024
- 🪦
Buried15 Apr 2024