Skip to content

ReferenceError: AstSerializer is not defined #238

@tmcw

Description

@tmcw

Getting this error attempting to use webc:for. The culprit is pretty clear:

This line references AstSerializer but it isn't imported:

throw new Error(`Invalid ${AstSerializer.attrs.LOOP} attribute value: ${loopAttr}`);

Ideally this would be caught by a linter?

[11ty] Eleventy Fatal Error (CLI):
[11ty] 1. Having trouble writing to "./_site/index.html" from "./src/index.webc" (via EleventyTemplateError)
[11ty] 2. (./src/_includes/layouts/main.njk)
[11ty]   EleventyNunjucksError: Error with Nunjucks paired shortcode `renderTemplate` (via Template render error)
[11ty] 3. AstSerializer is not defined (via ReferenceError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions