We had a similar issue with a build and it was to do with Event Streamer
package.
On Monday, December 3, 2018 at 8:36:28 PM UTC+4, Soumya Suryakumar wrote:
>
> I am running a gulp build for production. I am getting an error "Error:
> ENOENT: no such file or directory, open 'target/tmp/templates.js'". This is
> a snippet of gulpfile.js and gulp/build.js files
> GULPFILE.JS
>
> gulp.task('html', function () {
> return gulp.src(config.app + 'app/**/*.html')
> .pipe(print())
> .pipe(htmlmin({collapseWhitespace: true}))
> .pipe(templateCache('templates.js', {
> module: 'mommypowerApp',
> root: 'app/',
> moduleSystem: 'IIFE',
> }))
> .pipe(gulp.dest(config.tmp));
> });
> GULP/BUILD.JS
>
> module.exports = function() {
> var templates = fs.readFileSync(config.tmp + '/templates.js');
> var manifest = gulp.src(config.revManifest);
>
> return gulp.src([config.app + '**/*.html',
> '!' + config.app + 'app/**/*.html',
> '!' + config.app + 'swagger-ui/**/*',
> '!' + config.bower + '**/*.html'])
> .pipe(print())
> .pipe(plumber({errorHandler: handleErrors}))
> //init sourcemaps and prepend semicolon
> .pipe(useref({}, initTask))
> //append html templates
> .pipe(gulpIf('**/app.js', footer(templates)))
> .pipe(gulpIf('*.js', jsTask()))
> .pipe(gulpIf('*.css', cssTask()))
> .pipe(gulpIf('*.html', htmlmin({collapseWhitespace: true})))
> .pipe(gulpIf('**/*.!(html)', rev()))
> .pipe(revReplace({manifest: manifest}))
> .pipe(sourcemaps.write('.'))
> .pipe(gulp.dest(config.dist));
> };
> Not able to understand why the file is not getting created. I have checked
> through the GitHub forums and they said that add gulp-header before the
> gulp-angular-templatecache entry in the package.json file. Even after doing
> that I still see this error.
>
> Any suggestions how to solve this issue?
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/f235422a-0b06-4f31-bfac-d88c18e022f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.