Support the ongoing development of →
posted 8 years ago
Last updated 1 year ago.

Node 0.12

this.registerWatcher('browser-sync', src || defaultSrc);
TypeError: undefined is not a function

Node 0.10

I get exactly the same output as posted above

TypeError: Object function (recipe) {
    // We'll start by loading all of the available tasks.

    // The user may then choose which tasks they want.

    // Now that the user has requested their desired tasks
    // from the Gulpfile, we'll initialize everything!;
} has no method 'registerWatcher'
Last updated 8 years ago.

This is only when using laravel/elixir ~3

I've put an issue into the repo

For the moment use laravel/elixir ^2.0.0 to solve your problem.

Last updated 8 years ago.

the elixir api has changed

gulp.task('speak', function() {
            return gulp.src('').pipe(shell('say ' + message));

        return this.queueTask('speak')
                   .registerWatcher('speak', './app/**');

now it is

 new Task('speak', function() {
            return gulp.src('').pipe(shell('say ' + message));
Last updated 8 years ago.

Sign in to participate in this thread!


Your banner here too?

tommhuth tommhuth Joined 24 Sep 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.