sindresorhus / gulp-nunjucks

Precompile Nunjucks templates
MIT License
152 stars 20 forks source link

Nunjucks Incompatibility runtime.fromIterator Error #32

Closed NatEvatt closed 5 years ago

NatEvatt commented 6 years ago

Recently I have been getting the error TypeError: runtime.fromIterator is not a function whenever I try using a precompiled template with a for statement. I figured out that the issue is related to nunjucks version as described in this post on the nunjucks github page https://github.com/mozilla/nunjucks/issues/1091

I have been able to fix the issue by forcing npm to install nunjucks 3.0.x as described in the url above. It would be awesome if gulp-nunjucks were updated to the current 3.1.x.

Thanks

sindresorhus commented 5 years ago

Done