Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task definition order is important #62

Closed
eddiemonge opened this issue Mar 8, 2016 · 1 comment
Closed

Task definition order is important #62

eddiemonge opened this issue Mar 8, 2016 · 1 comment

Comments

@eddiemonge
Copy link

But why do they have to be?

gulp.task('first', gulp.series('one', 'two'));
gulp.task('one', function(done) {
  // do stuff
  done();
});

gulp.task('two', function(done) {
  // do stuff
  done();
});

throws:

assert.js:89
  throw new assert.AssertionError({
  ^
AssertionError: Task never defined: one
@phated
Copy link
Member

phated commented Mar 8, 2016

The way you are using gulp 4 is an antipattern. This is by design but if you are unwilling to fix your code, we built https://github.com/gulpjs/undertaker-forward-reference for you to use.

@phated phated closed this as completed Mar 8, 2016
@gulpjs gulpjs locked and limited conversation to collaborators Nov 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants