Skip to content

ReferenceError: AstSerializer is not defined #238

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions