Support the ongoing development of Laravel.io →
posted 9 years ago
Packages
Last updated 2 years ago.
0

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.
    require('require-dir')('./tasks');

    // The user may then choose which tasks they want.
    recipe(Elixir.mixins);

    // Now that the user has requested their desired tasks
    // from the Gulpfile, we'll initialize everything!
    createGulpTasks.call(Elixir);
} has no method 'registerWatcher'
Last updated 9 years ago.
0

This is only when using laravel/elixir ~3

I've put an issue into the repo https://github.com/laravel/framework/issues/9771

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

Last updated 9 years ago.
0

the elixir api has changed https://github.com/laravel/elixir/releases

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));
        })
        .watch('./app/**');
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tommhuth tommhuth Joined 24 Sep 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.