-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
##[error]Error Processing handlebars [TypeError: Cannot read property 'find' of undefined] #940
Comments
The log shows that all the data discovery stages have run
It is then loading the template OK
But then is failing when handlebars tries to process the template
From past experience issues with As the issue appears to be in the output production, I would suggest simplifying the template until there is no error then build it back up again. Unfortunately I have no tools to help to give more insight to what is occurring during processing. However, what might be use to speed this process is to use my command line runner for this task, check it out here. You can then re-run a build on demand after pulling the config values from the log you provided to in this issue |
I will see if I can get the command line runner running and see if I can identify where in the template it is failing. Thanks for your suggestion. |
After running this through the command line runner, I was able to narrow this down to this: {{#forEach this.workItems}} This second lookup_a_work_item is getting a null array from the ../../relatedWorkItems {{/if}} We are trying to be able to report up to two parents (ie US -> Feature -> Epic or Task -> US -> Feature). The second #with is in the context of the first relatedWorkItem (I think). Is what I want to do possible? Thanks, Dan |
It could be the wrong number of If you have the test harness running I would suggest experimenting adding and removing |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Describe the bug
We are trying to generate release notes for stage and this is the first time that this stage has been deployed. When it runs it ends up failing with:
##[error]Error Processing handlebars [TypeError: Cannot read property 'find' of undefined]
We are running "Generate Release Notes (Crossplatform)" version 3.43.11
We've run the same step in a prior stage without error (the step is in a Task Group so the template is the same between stages). The work items would be different for this stage because it hasn't been successfully run yet.
To Reproduce
Expected behavior
I'm expecting it to generate release notes similar to what it does for other stages.
Here is the template we are using:
template.txt
Logs
GenerateReleaseNotes.Log
What is the issue see:
The text was updated successfully, but these errors were encountered: