Vue.js/Nuxt.js Vuex 스토어 에러 : TypeError: undefined is not iterable

Nuxt.js·2021년 9월 17일
0

시행착오

목록 보기
5/6

아래 에러 발생 하는 경우

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

스토어 setter에서는 .obj를 사용 중인데

정작 사용 할 때는 arr:으로 넘기고 있어서 undefined 로 접근이 발생 한 것이다.

키값을 arr이나 obj로 통일하면 해결 된다.

profile
Nuxt.js

0개의 댓글