Skip to content
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

Occasional npm run gulp-watch errors #578

Closed
CloudNiner opened this issue Nov 1, 2016 · 1 comment
Closed

Occasional npm run gulp-watch errors #578

CloudNiner opened this issue Nov 1, 2016 · 1 comment

Comments

@CloudNiner
Copy link
Contributor

The process occasionally crashes with the error:

[19:19:19] Starting 'common:build'...
[19:19:19] 'common:build' errored after 43 μs
[19:19:19] Error: The thunkFunction already filled
    at child (/opt/app/src/node_modules/gulp-sequence/node_modules/thunks/thunks.js:158:32)
    at Gulp.thunkFunction (/opt/app/src/node_modules/gulp-sequence/node_modules/thunks/thunks.js:153:14)
    at module.exports (/opt/app/src/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
    at Gulp.Orchestrator._runTask (/opt/app/src/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/opt/app/src/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
    at /opt/app/src/node_modules/gulp/node_modules/orchestrator/index.js:279:18
    at finish (/opt/app/src/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8)
    at module.exports (/opt/app/src/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:60:3)
    at Gulp.Orchestrator._runTask (/opt/app/src/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/opt/app/src/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
    at Gulp.Orchestrator.start (/opt/app/src/node_modules/gulp/node_modules/orchestrator/index.js:134:8)
    at Gulp.<anonymous> (/opt/app/src/node_modules/gulp/index.js:36:18)
    at Gaze.<anonymous> (/opt/app/src/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/index.js:18:14)
    at emitTwo (events.js:87:13)
    at Gaze.emit (events.js:172:7)
    at Gaze.emit (/opt/app/src/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:129:32)

Possibly related? teambition/gulp-sequence#2

Workaround is to restart the process or manually run npm run gulp-development whenever static asset changes are made.

@anjunatl
Copy link

@CloudNiner I think teambition/gulp-sequence#2 may be related as you mentioned. I had the same error appear occasionally when a watch task would run a sequenced set of tasks.

I modified my usage of gulp-sequence to use the callback pattern as mentioned by @zensh here: teambition/gulp-sequence#2 (comment) - As far as I can tell, it's resolved my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants