最近搜索
没有最近搜索

Ryan Carpenter
已加入2021年11月05日
·
最后活动2021年11月05日
关注
0
关注者
0
活动总数
3
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Ryan Carpenter
Ryan Carpenter 创建了一个帖子,
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
评论