It would be nice if there was a tool that could validate if the template you are writing is valid or not, since the error message doesn't tell you where the error is.
Either this or at least making the error message more specific to where the error actually is, rather than logging the entire template in the console and saying it is invalid. Seems like printing the line where the template error is would be much simpler and easier than building a tool to validate templates. Either way, it would be great to have this capability, rather than spending hours troubleshooting template errors.