このエラーメッセージに関する原因と対処に関して説明します。
エラーメッセージ(英語):
cannot push to undefined
対処
関連リンク
javascriptのpushで配列の最後にpushで値を追加する方法について - スタック ...ja.stackoverflow.com/.../...
https://ja.stackoverflow.com/questions/19805/javascript%E3%81%AEpush%E3%81%A7%E9%85%8D%E5%88%97%E3%8・・・
Javascript/jQuery - "Cannot call method 'push' of undefined" while ...stackoverflow.com/.../javascript-jquery-cannot-call-met...
https://stackoverflow.com/questions/11882650/javascript-jquery-cannot-call-method-push-of-undefined-・・・
TypeScript で 配列変数を定義したのに、Cannot read property ...usefuledge.com/typescript-push-of-undefined.html
https://usefuledge.com/typescript-push-of-undefined.html