-
[Vue.js 오류] error in render typeerror cannot read property[FRONTEND]/Vue.js 오류 2020. 6. 15. 19:53
Vue로 작업도중 다음과 같은 오류가 발생했다.
error in render typeerror cannot read property
오류 원인을 찾아본 결과 값이 할당되지않았는데, 렌더링을 하려고해서 발생한 것으로 확인되었다.
그렇기 떄문에 위와 같은 문제가 있을 경우
다음과 같이 if문 처리를 하는 것으로 해결하였다.
test: function(){ if(dataset == undefined){ return dataset; } return dataset.map(e => { return { "test" : e }; }); }
'[FRONTEND] > Vue.js 오류' 카테고리의 다른 글
[Vue.js 오류] .map is not a function (0) 2020.06.15 [Vue.js 오류] maximum call stack size exceeded (0) 2020.06.11 [Vue.js 오류] vue : 이 시스템에서 스크립트를 실행할 수 없으므로 파일을 로드할 수 없습니다. (0) 2020.05.31 [vue.js 오류] this dependency was not found (0) 2020.05.12