`method` was undefined