-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boilerplate component showing errors in MJML App #331
Comments
Also, seems that any HTML content that is inside the custom component doesn't get rendered in the App. It's just blank, and exporting is blank too. It's using the boilerplate Not sure if it's related to the main issue above? |
Hello, any help here? Thank you. |
Hi @alfredtan sorry for the wait, |
Concerning the validation warnings, it turns out that when registering components through a .mjmlconfig file, dependencies should be declared by another way to ensure they are registered by the right instance of mjml. |
@alfredtan also, concerning mj-layout not rendering its children, it's because mjLayout is not an endingTag. |
Hi @kmcb777 , Regarding |
I'm not sure what you mean by "parent tags", but the 'endingTags' are only the tags that whose content is html, not mjml |
Right, so based on what you've described above, that means Apologies if i'm not understanding this correctly. |
No i thought your mj-layout wasn't rendering because you didn't check the option for custom components in the settings ? And no it's not that, endingTag means "This tags only contains plain html, don't parse its content, just leave it as it is" |
Ah yes there's a confusion. Indeed you helped to solve the error messages on the editor, however mj-layout rendering issue is still there and it's actually the boilerplate code from https://github.com/mjmlio/mjml-component-boilerplate/blob/master/index.mjml, I just added 'strong'. I posted both of them here coz I thought it's related. |
Hi @alfredtan i was just investigating some problems with custom comps on the app, and i got the exact same problem with mj-layout while also using an older custom mjml engine. With the embedded mjml engine, it works fine, so i hope the problem was inside mjml and was fixed since then. |
Describe the bug
We've downloaded the MJML Component Boilerplate (package.json showing version 1.0.1) and we can build the components and the provided index.mjml successfully.
We use the MJML Desktop App for development (we have non-coders) and these are the version under "About":
MJML App v3.0.2
MJML V^4.6.2
Within the App, we've pointed to the .mjmlconfig of the custom components. When we open the provided index.mjml inside the App, it is showing these errors in the screenshot at the bottom.
All the errors are identical:
For the last one, i can see the 'mj-text' is allowed as a child of 'mj-layout' but it's still showing error. Apart from these, exporting index.mjml to HTML within the app works as expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The red errors shouldn't show?
Screenshots
Environment (please complete the following information):
MJML V^4.6.2
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: