You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug TemplateWriterErrors thrown by TemplateWriter#write report the wrong template as the source of the error.
To Reproduce
In my case, the eleventy-plugin-cache-buster was throwing an error because an asset hadn't been written to the output folder before the plugin's transform function was run.
However, this loop in TemplateWriter.js doesn't create a new scope to remember the value of the mapEntry variable with each loop iteration.
Expected behavior
The correct template should be reported. This could be solved by somehow creating a new scope with each loop iteration in the above mentioned loop.
Environment:
OS and Version: Mac
Eleventy Version 0.9.0
The text was updated successfully, but these errors were encountered:
Fixes11ty#722. Previously we wouldn't scope the value of the mapEntry
variable to each iteration when looping over the templates to write.
This became an issue of any of the generated promises threw an error,
since the error message would always report that it stemmed from the
template from the last iteration.
Describe the bug
TemplateWriterError
s thrown byTemplateWriter#write
report the wrong template as the source of the error.To Reproduce
In my case, the eleventy-plugin-cache-buster was throwing an error because an asset hadn't been written to the output folder before the plugin's transform function was run.
However, this loop in
TemplateWriter.js
doesn't create a new scope to remember the value of themapEntry
variable with each loop iteration.Expected behavior
The correct template should be reported. This could be solved by somehow creating a new scope with each loop iteration in the above mentioned loop.
Environment:
The text was updated successfully, but these errors were encountered: