this.registerWatcher('browser-sync', src || defaultSrc);
^
TypeError: undefined is not a function
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'
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.
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/**');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community