-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'pid' of null #14
Comments
var pid = gutil.colors.magenta( app.child.pid ); TypeError: Cannot read property 'pid' of null |
This issue is most persistent when watching the many results of a js/css set of gulp tasks. For instance, I have several js and css files that need to be minified and linted, which then get moved to a "dist" folder. My develop task is as follows:
This yields the child pid error as well as several other event errors. |
I think this issue is caused by a bug of checking multiple restarts. https://github.com/narirou/gulp-develop-server/blob/master/index.js#L206-L210 // already called this function
if( isChanged ) {
isChanged = false; // *** I think this line cause the problem. It is unnecessary code. ***
return done( null, 'Development server already received restart requests.', callback );
} It calls the |
@kgdev, @nforysinski, @chimerast As it is said, the value of But, as a result, I do not know whether this issue has been fixed yet. |
I think this error fixed by previous commit. (thanks @chimerast) |
·
/home/ubuntu/weidian/backend/node_modules/gulp-develop-server/index.js:188 │············
var pid = gutil.colors.magenta( app.child.pid ); │············
^ │············
TypeError: Cannot read property 'pid' of null │············
at ChildProcess.stopped (/home/ubuntu/weidian/backend/node_modules/gulp-develop-server/index.js:188:45) │············
at ChildProcess.g (events.js:199:16) │············
at ChildProcess.emit (events.js:129:20) │············
at maybeClose (child_process.js:1015:16) │············
at Socket. (child_process.js:1183:11) │············
at Socket.emit (events.js:107:17) │············
at Pipe.close (net.js:485:12)
The text was updated successfully, but these errors were encountered: