chocolateboy/parcel-plugin-nunjucks

Template errors are silently swallowed

chocolateboy opened this issue · 0 comments

parcel-plugin-nunjucks1.0.0
parcel1.9.7
nodev10.9.0
OS Linux (Arch)

Many types of error inside templates are not reported. This is due to a bug in nunjucks which throws errors asynchronously (and thus invisibly) if render or renderString are called synchronously.

$ cat example.njk
{% include "no-such-file.html" %}

<h1>Example</h1>
$ parcel build example.njk
# no error

$ cat dist/example.html
null