최근 검색


최근 검색 없음

Ryan Carpenter's Avatar

Ryan Carpenter

가입한 날짜: 2021년 11월 05일

·

마지막 활동: 2021년 11월 05일

팔로잉

0

팔로워

0

총 활동 수

3

투표 수

0

가입 플랜

1

활동 개요

님의 최근 활동 Ryan Carpenter

Ryan Carpenter님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk Apps Framework (ZAF)

That makes sense. Thanks. I guess I saw that ZAFClient was letting me render what I wanted, so I never looked closely enough at the other files.

댓글 보기 · 2021년 11월 05일에 게시됨 · Ryan Carpenter

0

팔로워

0

투표 수

0

댓글


Ryan Carpenter님이 에 게시물을 만듦

게시물 Developer - Zendesk Apps Framework (ZAF)

I started with the app_scaffold repo and modified `src/templates/default.js` to render my simple list of hyperlinks. When I uploaded to our Zendesk instance, it rendered correctly, but lots of errors were thrown in the devtools console.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode') at n.render (app.js:1)

To debug, I pulled out most of my code until my default.js file was virtually empty.

export default function () {
console.log('default.js');
var client = ZAFClient.init();
return '';
}

This resulted in an endless cycle of the reading 'parentNode' error and default.js being reloaded (in a ~2 second cycle). If I comment out the ZAFClient line, the error (and reloading) goes away.

It seems clear that I've set this up incorrectly, but I'm having trouble fining much guidance on how to do it right. Any suggestions?

2021년 11월 05일에 게시됨 · Ryan Carpenter

1

팔로워

3

투표 수

3

댓글