Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Ryan Carpenter's Avatar

Ryan Carpenter

Beigetreten 05. Nov. 2021

·

Letzte Aktivität 05. Nov. 2021

Folge ich

0

Follower

0

Gesamtaktivitäten

3

Stimmen

0

Abonnement

1

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von Ryan Carpenter

Ryan Carpenter hat einen Kommentar hinterlassen

Community-Kommentar 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.

Kommentar anzeigen · Gepostet 05. Nov. 2021 · Ryan Carpenter

0

Follower

0

Stimmen

0

Kommentare


Ryan Carpenter hat einen Post erstellt

Post 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?

Gepostet 05. Nov. 2021 · Ryan Carpenter

1

Follower

3

Stimmen

3

Kommentare