Skip to content

MjmlAdapter doesn't work with latest version of mjml #1312

@mbehm

Description

@mbehm

Describe the bug
MjmlAdapter always produces undefined html with latest version of mjml because of incorrect promise handling.

To Reproduce
Just try to use the MjmlAdapter as described by the documentation (npm install mjml installs the latest version).

Expected behavior
Expect the adapter to work with the latest version of mjml.

Additional context
The problem is at mjml.adapter.ts#L42. Latest version of mjml2html returns a promise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions