Skip to content

Template render error could use more information #2216

Open
@mbforbes

Description

@mbforbes

Hi there,

First off, thank you for building Eleventy, I'm very excited to try using it.

I'm migrating an old Jekyll site with lots of Liquid templates to Eleventy + Nunjuks. I'm running into lots of template errors during my migration.

The issue I'm having is that the error messages I get make it very hard to find the source of my problems in a big (couple hundred line) template file. The complete error message is something like:

[11ty] (./_includes/layouts/default.njk)
  Error: template names must be a string: undefined

It would be so helpful if it gave me any more information—e.g., even the line that it failed on would be a big help. Running with DEBUG=* ... prints a lot more info about Eleventy's code, but I can't see any more info about the template.

Many thanks for considering this, and apologies if it's already suggested — I tried an issue search but couldn't see a duplicate at first glance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions