Template errors are silently swallowed
chocolateboy opened this issue · 0 comments
chocolateboy commented
parcel-plugin-nunjucks | 1.0.0 |
---|---|
parcel | 1.9.7 |
node | v10.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