posthtml / posthtml-each

Repeat your HTML-elements with attribute
Other
6 stars 0 forks source link

undefined is not a function #2

Open jitendravyas opened 8 years ago

jitendravyas commented 8 years ago

When I add this plugin I get this error

➜  posthtml gulp posthtml
[14:42:45] Using gulpfile ~/my-projects/posthtml/gulpfile.js
[14:42:45] Starting 'posthtml'...
[14:42:45] 'posthtml' errored after 45 ms
[14:42:45] TypeError in plugin 'gulp-posthtml'
Message:
    undefined is not a function
Details:
    domainEmitter: [object Object]
    domain: [object Object]
    domainThrown: false

my gulp file

var gulp = require('gulp');
var posthtml = require('gulp-posthtml');
gulp.task('posthtml', function () {
    var plugins = [
        require('posthtml-alt-always')(),
        require('posthtml-include')({ encoding: 'utf-8' }),
        require('posthtml-lorem')(),
        require('posthtml-each')(),
        ];
    return gulp.src('*.html')
        .pipe(posthtml(plugins))
        .pipe(gulp.dest('./dest'));
});
Scrum commented 4 years ago

@jitendravyas Hi, is this still relevant for you? if so, write the parameters of your project, the versions of packages that you use versions nodejs and npm.