mjmlio / gulp-mjml

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

SyntaxError: Missing initializer in const declaration #46

Closed gbourne1 closed 5 years ago

gbourne1 commented 5 years ago

With the new 4.0.0 version get this error when declaring gulp-mjml on Node 12.4.0

const mjml = require('gulp-mjml');

Error:

/node_modules/gulp-mjml/src/index.js:39 const render; ^^^^^^

SyntaxError: Missing initializer in const declaration at Module._compile (internal/modules/cjs/loader.js:718:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10) at Module.load (internal/modules/cjs/loader.js:641:32) at Function.Module._load (internal/modules/cjs/loader.js:556:12) at Module.require (internal/modules/cjs/loader.js:681:19) at require (internal/modules/cjs/helpers.js:16:16) at Object. (/gulpfile.js:26:9) at Module._compile (internal/modules/cjs/loader.js:774:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10) at Module.load (internal/modules/cjs/loader.js:641:32)

kmcb777 commented 5 years ago

Hi @gbourne1 thanks for reporting this, this has been fixed on master, we'll release it asap

kmcb777 commented 5 years ago

@gbourne1 it's now released !