Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mailnike's avatar

Spark 3.0.4 --- changes in "home.js" not reflected in the build

As per the Laracasts Spark lessons - I modified "resources/assets/js/components/home.js" . Added a simple statement "console.log('test')" in the "mounted() { " . Then in the end Ran GULP . However - it seems either I am missing some step or GULP is not able to identify change in "home.js" file. If I am not wrong there was a similar issue for the old version of SPARK - where GULP didn't identify "home.js" change when using Browserify. There is no error in the GULP output, it successfully generates "app.js" file. I am using Node 6.9.1, Gulp 3.9.1, and NPM 3.10.8 . Is this because of VueJS version?

0 likes
4 replies
coolpraz's avatar

@mailnike check your app.js have this line

require('./components/bootstrap');

and inside your components directory check your bootstrap.js have this line

require('./home');
1 like
mailnike's avatar

This is app.js >>

require('spark-bootstrap');

require('./components/bootstrap');

var app = new Vue({ mixins: [require('spark')] });

and this is bootstrap.js >>

require('./../spark-components/bootstrap');

require('./home');

mailnike's avatar

This is a GULP issue. I reinstalled node, npm and gulp - then it started working but wasted my entire day :-/

Please or to participate in this conversation.