laravel-elixir-browserify icon indicating copy to clipboard operation
laravel-elixir-browserify copied to clipboard

Failing on Elixir 3.0.0

Open Josephwaelchli opened this issue 10 years ago • 4 comments

I'm receiving this error:

Error: Cannot find module 'laravel-elixir/ingredients/commands/Utilities

Running this gulp file

var elixir = require('laravel-elixir');
var browserify = require('laravel-elixir-browserify');


elixir(function(mix)    {
    browserify.init();

    mix.sass('app.scss');
    mix.browserify('widgets.js', {output : 'public/js', rename : 'widget.js'});
 });

I did some googling on the error message and found that a lot of elixir plugins ran into a similar error when the helpers directory was changed to the commands directory. I'm not sure if a similar change recently happened that's causing this issue or if something is set up wrong on my end.

Josephwaelchli avatar Aug 19 '15 06:08 Josephwaelchli

Sorry, but current version of this plugin works only with elixir ^2.0

skrajewski avatar Aug 19 '15 10:08 skrajewski

Thanks for the reply! I can try going backwards

Josephwaelchli avatar Aug 19 '15 14:08 Josephwaelchli

Uh, just as a sidenote, Elixir is already on version 4. Any plans on updating the plugin?

igorsantos07 avatar Dec 17 '15 21:12 igorsantos07

@igorsantos07 lastest Elixir version 4 are able to use browserify without installed any plugin. Take a look at official laravel document. https://laravel.com/docs/5.2/elixir#browserify

If you are going to use Elixir v2 then this plugin is needed.

edisonthk avatar Jan 02 '16 08:01 edisonthk