➜ 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'));
});
@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.
When I add this plugin I get this error
my gulp file