Closed jitendravyas closed 7 years ago
What version of node are you using ?
same issue here v0.12.7
I have similar error here var childProps = Object.assign({}, child.props); ^ TypeError: Object function Object() { [native code] } has no method 'assign'
node version : v4.4.7 npm version : 3.10.5
I installed gulp-mjml via npm and got this error when starting my task
var mjml = require('gulp-mjml')
gulp.task('mjml', function () { return gulp.src('./Emails/mjml/welcome2.mjml') .pipe(mjml()) .pipe(gulp.dest('./Emails')) })
Object.assign
is part of ES2015 and has been implemented in Node.js since v4.4.6
(see here: http://node.green/#Object-static-methods).
You can use babel-polyfill to use that functionality in older node versions.
npm install --save babel-polyfill
Then in your source code:
require('babel-polyfill')
Getting this error
Gulpfile
index.mjml