エラーが発生しました: Can't call method "output" on an undefined value