Common Mistakes and Errors | Yext Hitchhikers Platform
What You’ll Learn
In this section, you will learn:
- Common errors you’ll encounter with Handlebars
Just like any coding language, there are some common issues you might run into. Here’s a list to help you troubleshoot should you encounter issues.
Syntax Errors
- Forgetting to close your Handlebars expressions
- Misspellings in your partials or block expressions
- Incorrect notation for your partials (
{{@ partial}}
) or if/where/each block expressions
Other Errors
- If you see ‘null’ being printed in your templates, you aren’t properly null-checking values. Use an
{if}
expression to determine if the value exists before using it in a template - If you’re not successfully getting the attribute of data you want to show, make sure you’re aware of the evaluation context of the expression
unit Quiz
+20 points
Daily Quiz Streak: 0
Quiz Accuracy Streak: 0
Question 1 of 2
If you see 'null' being printed, what should you do?
Question 2 of 2
If you're getting errors about a partial not being available, what are some things you should check? (Select all that apply)
Climbing that leaderboard! 📈
You've already completed this quiz, so you can't earn more points.You completed this quiz in 1 attempt and earned 0 points! Feel free to review your answers and move on when you're ready.
1st attempt
0 incorrect
Sign up for Hitchhikers to start earning points!
If you're already a Hitchhiker, log in to access this content.
<% elem.innerText %>