# Mjml dynamic / mjml-html

**URL:** <https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560>\
**Category:** Product Support\
**Created:** [September 30, 2022, 10:42am UTC](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560 "2022-09-30T10:42:53Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [December 19, 2022, 11:03pm UTC](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560/42 "2022-12-19T23:03:47Z")

</div>

This is still an issue with 4.4.5. I was able to execute @robm 's commands, but not @adiux 's shortcut. I think @adiux is on the right track, though, that it’s an issue with the github build.

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [December 19, 2022, 11:23pm UTC](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560/43 "2022-12-19T23:23:23Z")

</div>

Ok, not so consistently. I followed @robm’s process to a T on 4 servers. It worked great on 2 of them, and didn’t make a difference on 2 of them. The two that worked are very slightly different from the two that didn’t, mostly at an OS level.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [August 7, 2023, 8:16am UTC](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560/44 "2023-08-07T08:16:31Z")

</div>

I have tried @robm suggestion as well as @adiux but neither of them are working for me, getting a fail on file/directory installing.

I have also noticed some fixes on GitHub, but am not really sure how to go about implementing or testing them correctly.  
This one I just replaced the files: [https://github.com/mautic/mautic/pull/11319](https://github.com/mautic/mautic/pull/11319)  
Unsure of what do do with this one: [Add dynamic content to the Email Builder in MJML mode by adiux · Pull Request #26 · mautic/grapesjs-preset-mautic · GitHub](https://github.com/mautic/grapesjs-preset-mautic/pull/26)

I am running Mautic 4.4.4

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 10, 2023, 9:39am UTC](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560/45 "2023-08-10T09:39:19Z")

</div>

There was 1 version of Mautic (maybe 4.4.4) which included an older grapesjs editor. The new versions all have the one with dynamic content for mjml. (I learned this from @silavapi , during a watercooler chat - benefit of the in-person sprints 🙂

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [August 24, 2023, 11:40am UTC](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560/46 "2023-08-24T11:40:33Z")

</div>

@joeyk anyway to fix this in 4.4.4 with a patch that is out there. I have successfully got this working on a number of instances, however we have an instance running ubuntu 18.04 and I am struggling with it, we do not want to upgrade to a later version of Mautic.

When I follow the commands above I get the following output:

```auto

> grapesjsbuilderbundle@1.0.0 build /var/www/mautic/plugins/GrapesJsBuilderBundle
> parcel build Assets/library/js/builder.js --out-dir Assets/library/js/dist --public-url ./

sh: 1: parcel: not found

npm ERR! Linux 5.4.0-1103-aws
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! grapesjsbuilderbundle@1.0.0 build: `parcel build Assets/library/js/builder.js --out-dir Assets/library/js/dist --public-url ./`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the grapesjsbuilderbundle@1.0.0 build script 'parcel build Assets/library/js/builder.js --out-dir Assets/library/js/dist --public-url ./'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grapesjsbuilderbundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! parcel build Assets/library/js/builder.js --out-dir Assets/library/js/dist --public-url ./
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs grapesjsbuilderbundle
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls grapesjsbuilderbundle
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/mautic/plugins/GrapesJsBuilderBundle/npm-debug.log

```

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 24, 2023, 11:55am UTC](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560/47 "2023-08-24T11:55:37Z")

</div>

I can’t help with that, but maybe @adiux ?

[Previous page](https://forum.mautic.org/t/mjml-dynamic-mjml-html/25560.md?page=2)
