Mjml: mj-wrapper doesn't exist or is not registered

Created on 28 Feb 2017  Â·  5Comments  Â·  Source: mjmlio/mjml

Hi. I have a strange problem. I'm trying to wrap a section with two columns with mj-wrapper but I get this error:

Line 32 (mj-wrapper) - Element mj-wrapper doesn't exist or is not registered

My code is basically this:

<mjml>
  <mj-body>
    <mj-container>

32:      <mj-wrapper full-width="full-width" background-color="F2F2F2">
            <mj-section background-color="#FFFFFF" vertical-align="middle">
              <mj-column width="50%" vertical-align="middle"></mj-column>
              <mj-column width="50%" vertical-align="middle"></mj-column>
            </mj-section>
          </mj-wrapper>

    </mj-container>
  </mj-body>
</mjml>

Installed MJML version is 3.2.2

Am I missing something?

Most helpful comment

Well, that's good to know.
Then it wouldn't hurt if it was noted in the documentation on the site.

All 5 comments

mj-wrapper is introduced in 3.3 beta, it is not available in 3.2.2

Kind Regards,

:----------------------------:
Dale McConnell

On 28 February 2017 at 08:58, Aleksandra Uzelac notifications@github.com
wrote:

Hi. I have a strange problem. I'm trying to wrap a section with two
columns with mj-wrapper but I get this error:

Line 32 (mj-wrapper) - Element mj-wrapper doesn't exist or is not
registered

My code is basically this:



32:




</mj-container>


Installed MJML version is 3.2.2

Am I missing something?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mjmlio/mjml/issues/567, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKxLOM2uP2qRHW31hmTkEqjA-6Ad09qLks5rg9OPgaJpZM4MOE90
.

Well, that's good to know.
Then it wouldn't hurt if it was noted in the documentation on the site.

@dalefish how can I install the beta?

'npm install -g mjml@beta' for the latest version

Kind Regards,

:----------------------------:
Dale McConnell

On 28 February 2017 at 09:14, Aleksandra Uzelac notifications@github.com
wrote:

@dalefish https://github.com/dalefish how can I install the beta?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mjmlio/mjml/issues/567#issuecomment-282971973, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKxLOLPgJUwrwX74cpi-4VPP18_vh112ks5rg9dxgaJpZM4MOE90
.

Cool, thanks, it works now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liminspace picture liminspace  Â·  3Comments

plaisted picture plaisted  Â·  4Comments

csmcanarney picture csmcanarney  Â·  3Comments

fmauNeko picture fmauNeko  Â·  3Comments

sinsunsan picture sinsunsan  Â·  4Comments