question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gulp, Redux - console says patching is complete but no changes seen

See original GitHub issue

Hi there,

I’m attempting to retrofit this to an existing project that used Redux with React. According to the console, everything seems to be working, but I’m not seeing any changes.

LiveReactload :: Connect reload client to ws://customurl.dev:4474
LiveReactload :: WebSocket client listening for changes...

Then, when I save a file I get…

LiveReactload :: Bundle changed
LiveReactload :: Apply patch

Followed by numberous > Patch module message, finishing with… LiveReactload :: Patching complete

I am running the site through MAMP, so I’m not using server.js from the examples.

Here is the relevant parts from my Gulpfile.js

var browserifyTask = function(options) {
    // Our app bundler
    var appBundler = browserify({
        entries: [options.src], // Only need initial file, browserify finds the rest
        transform: [ [babelify, {}], [envify, {}] ],
        plugin:  !options.development ? [] : [ lrload ],    // no additional configuration is needed
        debug: options.development, // Gives us sourcemapping
        cache: {},
        packageCache: {},
        fullPaths: options.development // Requirement of watchify
    });

    // The rebundle process
    var rebundle = function() {
        var start = Date.now();
        console.log('Building APP bundle');
        appBundler
            .bundle()
            .on('error', gutil.log)
            .pipe(source(inputOutput.jsOutput))
            .pipe(replace(/\[API_URL\]/g, API_URL))
            .pipe(gulpif(!options.development, streamify(uglify())))
            .pipe(gulp.dest(options.dest))
            .pipe(gulpif(options.development, livereload()))
            .pipe(notify(function() {
                console.log('APP bundle built in ' + (Date.now() - start) + 'ms');
            }));
    };

    // Fire up Watchify when developing
    if (options.development) {
        appBundler = watchify(appBundler);
        appBundler.on('update', rebundle);
    }

    rebundle();
};

I have the feeling I’m making a fundamental error, but I’m stumped! So any guidance will be appreciated.

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
milankinencommented, Aug 2, 2016

Check. Please see the proposed fix

0reactions
milankinencommented, Aug 19, 2016

Fixed in 3.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Files are no longer watched after update from Gulp 4 alpha to v4
After upgrading, files are no longer being watched and changes are not reflected in the browser until the project is re-built and run....
Read more >
Npm Error - No matching version found for - Stack Overflow
I have npm 8.1.2 and was trying to install newer version of angualr cli, got an error saying "No matching version found for...
Read more >
Should I use Monkey Patching in JavaScript? | by David Fekke
Monkey Patching is the capability in JavaScript to swap out a function in a JavaScript object with your own function. This can come...
Read more >
Functional Web Development with React and Redux
and see an error message that says “Command not found,” Node.js is not installed. This can be done directly from the Node.js website....
Read more >
Updating or deleting a custom patch baseline (console)
When you update a patch baseline, you can change its name or description, its approval rules, and its exceptions for approved and rejected...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found