Warning: Recursive Process.nexttick Detected
Solution 1:
This might be a grunt issue. Grunt will vomit if there's repetition in your naming conventions.
This will break:
grunt.registerTask('foo', [ 'foo']);
This will not:
grunt.registerTask('foo', [ 'bar']);
Check out this SO post: grunt throw "Recursive process.nextTick detected"
Solution 2:
npm dedupe
solved it for me. Basically it reduces package duplication:
Searches the local package tree and attempts to simplify the overall structure by moving dependencies further up the tree, where they can be more effectively shared by multiple dependent packages.
Solution 3:
In my case I got the following warning before this error thrown:
Running "watch" task
Waiting...
Warning: watch ENOSPC
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
This error indicates that number of resources it tries to watch is higher that the limit for this user. That's why running as root user (which doesn't have these limits) works fine. But this is not a solution.
Find out what is limit for your user in Linux:
sysctl --all | grep watches
Try to increase number of watches for your current user:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
This should do the trick.
Solution 4:
As posted by me here: grunt throw "Recursive process.nextTick detected"
Alternative solution: check your watch for an empty file argument.
Here's an excerpt of my gruntfile
watch: {
all: {
options:{
livereload: true
},
files: ['src/scss/*.scss', 'src/foo.html',, 'src/bar.html'],
tasks: ['default']
}
}
In my case, I could recreate the original poster's error on demand with the empty argument above.
Post a Comment for "Warning: Recursive Process.nexttick Detected"