Closed JeffCleverley closed 7 years ago
Hi @JeffCleverley, can you please share your MJML code?
Sure:
Because I also have an error problem with the mjml preview package in Atom I was using the online editor. (No luck... maybe symptomatic of a deeper problem?)
But for some reason the online editor isn't showing the two columns of text under the image (3rd section down) and nothing was appearing in the online linter:
https://mjml.io/try-it-live/r15odffug
So I tried checking it in Atom Linter. It showed no errors. So I forced an obvious error to check to see if it was working. It still showed no errors. When I corrected the error and saved the file I got the above parse error.
<mjml>
<mj-head>
<mj-title>Zane Mellupe | [Date] Newsletter</mj-title>
<mj-attributes>
<mj-all font-family="Helvetica, Verdana, sans-serif" />
<mj-all color="black" />
<mj-all background-color="white" />
<mj-class name="big" font-size="24px" />
<mj-class name="biggish" font-size="15px" />
<mj-class name="medium" font-size="13px" />
<mj-class name="small" font-size="8px" />
<mj-class name="alright" align="right" />
<mj-class name="alleft" align="left" />
<mj-class name="full" width="100%" />
<mj-class name="head" padding-bottom="0px"/>
</mj-attributes>
<mj-style>
.op3 {opacity:0.3;} .op5 {opacity:0.5;} .op7 {opacity:0.7;} .op8 {opacity:0.8;} .op9 {opacity:0.9;}
</mj-style>
</mj-head>
<mj-body>
<mj-container>
<mj-section mj-class="head">
<mj-column>
<mj-image width="600px" src="https://zanemellupe.com/zanemellupenavbanner.png" href="https://zanemellupe.com"/>
<mj-text mj-class="biggish">
<span class="op8">News Release - [Date][Year]</span>
</mj-text>
<mj-text mj-class="big">
<span class="op3">Beyond The Lights | Animal Farm <br/>ifa gallery</span>
</mj-text>
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<mj-image width="600px" src="http://ezuconsulting.com/images/revisitinglandscapeandrevisitinglandscape1.jpg" href="https://zanemellupe.com/artwork/revisiting-landscape-and-revisiting-landscape/"/>
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<span color="black">For the exhibition "Beyond the lights", ifa gallery proposes a series of "luminous" works by varied artists such as Zane Mellupe or Christophe Demaître. 'Since the 1950s, natural or artificial light has become a privileged material for many contemporary artistic practices, whether they come from painting, sculpture or photography. For a long time, the light was a mystical or religious symbol materialising the divine and integrated by artists such as physical and natural. It has graduallly been introduced as immaterial, almost tangible, prevailing in art.</span>
</mj-column>
<mj-column>
<span>For the exhibition "Beyond the lights", ifa gallery proposes a series of "luminous" works by varied artists such as Zane Mellupe or Christophe Demaître. 'Since the 1950s, natural or artificial light has become a privileged material for many contemporary artistic practices, whether they come from painting, sculpture or photography. For a long time, the light was a mystical or religious symbol materialising the divine and integrated by artists such as physical and natural. It has graduallly been introduced as immaterial, almost tangible, prevailing in art.</span>
</mj-column>
</mj-section>
<mj-section>
<mj-column width="50%">
<mj-text mj-class="small alleft">
<span class="op5">[View in Browser]</span>
</mj-text>
</mj-column>
<mj-column width="50%">
<mj-text mj-class="small alright">
<span class="op5">[Unsubscribe]</span>
</mj-text>
</mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
Thanks
Jeff
I spotted my problem with displaying. Forgot <mj-text></mj-text>
Still that's beside the problem
hey @JeffCleverley, indeed there were 2 missing mj-text
. However, when using the linter it does show me that you're using span
elements where you shouldn't:
When I add the mj-text
, I don't have any other issue. It also seems to be working fine with the preview package:
Because I can't reproduce, this will be tricky! What version of the linter are you using?
Yup, those <span>
's are gone now too. I found the mjml app here, so I am using that for preview at the moment. But lacks the linter, and prefer to keep everything under one roof if possible.
I appreciate the difficulty, and any help you can give.
linter 1.11.21 linter-mjml 1.0.0
I forced an error to illustrate <mj-styl>
:
As mentioned, I also have a bug with the atom mjml preview package. Coincidence, or do you think perhaps they are connected? https://github.com/mjmlio/atom-mjml-preview/issues/1
Jeff
I took a nuclear option, uninstalled everything:
Atom and all packages. Node and npm and all packages installed via NPM.
I cleaned house entirely. Reinstalled Node and npm via homebrew. Reinstalled Atom. Only installed mjml-languages, mjml-linter and linter.
Error persists. haha.
I'm having the same error. I've been testing it out with the code examples from the documentation... No issues compiling to HTML but whenever I save in Atom this error message appears.
Thanks for reporting this !
Looks like an issue with MJML 3.2.X branch, I think it will be ok with MJML 3.3 I'll let you know about it
@iRyusa look forward to it.
Hello, I'm closing as this is fixed in the v1.1.0 of the plugin. Thanks for reporting @JeffCleverley!
MJML Linter is showing that there are no issues (green tick), when there are.
Then when I go to save the file I get this error:
Error: [MJMLError] ParseError: Error while parsing the file
Any ideas?