Skip to content

Instantly share code, notes, and snippets.

@JannieT
Created May 5, 2021 13:21
Show Gist options
  • Save JannieT/36a3c73515a5645024c476a52109c074 to your computer and use it in GitHub Desktop.
Save JannieT/36a3c73515a5645024c476a52109c074 to your computer and use it in GitHub Desktop.
> Having trouble rendering njk template ./src/home.njk
`TemplateContentRenderError` was thrown
> (./src/home.njk)
Error: Input data should be a String
`Template render error` was thrown:
Template render error: (./src/home.njk)
Error: Input data should be a String
at Object._prettifyError (/Users/jannie/Sites/bioy-marketing/node_modules/nunjucks/src/lib.js:36:11)
at /Users/jannie/Sites/bioy-marketing/node_modules/nunjucks/src/environment.js:563:19
at Template.root [as rootRenderFunc] (eval at _compile (/Users/jannie/Sites/bioy-marketing/node_modules/nunjucks/src/environment.js:633:18), <anonymous>:37:3)
at Template.render (/Users/jannie/Sites/bioy-marketing/node_modules/nunjucks/src/environment.js:552:10)
at /Users/jannie/Sites/bioy-marketing/node_modules/@11ty/eleventy/src/Engines/Nunjucks.js:236:14
at new Promise (<anonymous>)
at /Users/jannie/Sites/bioy-marketing/node_modules/@11ty/eleventy/src/Engines/Nunjucks.js:235:14
at Template.render (/Users/jannie/Sites/bioy-marketing/node_modules/@11ty/eleventy/src/TemplateContent.js:199:28)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment