question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

additionalStreams not working

See original GitHub issue

Given the below code, which I’ve simplified to make more readable:

gulp.task('build', function() {
  var templateStream = gulp.src('src/**/!(index).html')
    .pipe(processTemplates()) // lazypipe that just calls gulp-angular-templatecache.

  return gulp.src('src/index.html')
    .pipe(addTemplateToIndex()) // Adds <script> reference to 'app/app.templates.js'.
    .pipe($.useref({
      additionalStreams: [templateStream]
    }))
    .pipe($.if('app/**/*.js', processOwnJs()))
    .pipe($.if('*.js', processAllJs()))
    .pipe($.if('*.html', processAllHtml()))
    .pipe(gulp.dest('dist'));
});

I’m getting a File not found with singular glob error, specifying the full absolute path of the ‘app/app.templates.js’ file.

I can’t seem to figure out what exactly is going wrong; through inserting a few calls to gulp-debug I can see that the app.templates.js file appears to be getting passed along with the expected cwd, base and path properties.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
yuricamaracommented, Apr 8, 2016

Moved from #139

“When I add additionalStreams it immediately stops concatenate files, just copy them” Same problem here.

“version”: “3.0.8”

1reaction
urrricommented, Apr 8, 2016

Moved from #139 I tried the same with the new version of useref 3.0.8 and it doesn’t work. When I add additionalStreams it immediately stops concatenate files, just copy them. But it replaces entries in index.html to target. In addition it tries to add templates.js (I see it via debug and comments in the file)at the beginning of the each section (I have 4) , never mind I add entry to the html or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Simple Ways To Fix All Video Streaming Issues
The 10 methods to fix video streaming problems include: · Check the internet connectivity · Switch to a different streaming platform · Reduce...
Read more >
6 steps to solving your streaming video problems | TechHive
6 steps to solving your streaming video problems · Step 1: Restart everything · Step 2: Know your internet speed · Step 3:...
Read more >
Troubleshoot your YouTube live stream - Google Support
If you're having issues with your YouTube live stream, use the troubleshooting tips below. In addition to these tips, you can always post...
Read more >
How to Troubleshoot Live Streaming Issues with Broadcasting
Live streaming has a lot of moving parts. If things go wrong, here are ten ways for troubleshooting streaming issues right away.
Read more >
Fix streaming limit errors - DirecTV
Fix streaming limit errors · 10014-001: Looks like the maximum allowed number of streams are already playing. Close one of your other streams...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found