最近の検索


最近の検索はありません

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

コメント