Gulp, Redux - console says patching is complete but no changes seen
See original GitHub issueHi 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:
- Created 7 years ago
- Comments:23 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Check. Please see the proposed fix
Fixed in
3.0.0
.