Skip to content
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

Template errors are silently swallowed #10

Closed
chocolateboy opened this issue Sep 22, 2018 · 0 comments · Fixed by #11
Closed

Template errors are silently swallowed #10

chocolateboy opened this issue Sep 22, 2018 · 0 comments · Fixed by #11
Labels

Comments

@chocolateboy
Copy link
Owner

chocolateboy commented Sep 22, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant