mjmlio / gulp-mjml

Add Gulp to your MJML workflow!
MIT License
162 stars 38 forks source link

Receiving errors and wrong output via gulp-mjml but cli outputs fine #40

Closed nealoke closed 6 years ago

nealoke commented 6 years ago

Hi, Thanks for this awesome plugin which worked very good for the v3 versions however when upgrading to v4 I have some issues. The output created with the gulp-mjml is lacking almost all elements that it should contain. When using the cli mjml input.mjml -o output.html it creates the correct HTML.

mjml: v4.1.2 gulp-mjml: 3.0.0

When running following task:

gulp.task("mjml", () =>
    gulp
        .src(`${paths.src}**/*.mjml`)
        .pipe(mjml())
        .pipe(gulp.dest(paths.dist))
);

I receive the following errors:

[17:03:44] Starting 'mjml'...
No matching component for tag : mj-title
No matching component for tag : mj-preview
No matching component for tag : mj-font
No matching component for tag : mj-style
[17:03:44] Finished 'mjml' after 55 ms

View the Input MJML

View the Output HTML (via gulp-mjml)

View the Output HTML (via cli)

iRyusa commented 6 years ago

I think you have a conflict with MJML v3 somehwere. Try to remove your node_modules, remove global install and re-install it

nealoke commented 6 years ago

@iRyusa I feel that that is the "did you try turning it off and on again" for developers 😄 . I thought I already did this and so tried it again, working as expected now.

Thanks for the fast help 🚀

mariah123 commented 2 years ago

@iRyusa I have got the same issue while parsing in my .net 5 project.