Skip to content

Component variants display as YML #1308

@mejiaj

Description

@mejiaj

Hello, we're looking to use patternlab with the US Web Design System. When running npm run pl:build and serving that via browser-sync we're seeing variants displayed as YML instead of the actual component variant. You can see it in action on our alert component.

Making this change proposed by Adrian Richardson in gitter seems to work. Any thoughts on including it codebase? Any advice would be appreciated.

I am using @pattern-lab/core v5.14.1 and @pattern-lab/engine-twig v5.14.0 on Linux, with Node v14.16.0. You can view the variants in src/patterns/components/usa-alert/

Expected Behavior

Variants display properly
image

Actual Behavior

YML being shown
image

Steps to Reproduce

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