We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c6877 commit bf91533Copy full SHA for bf91533
packages/@vue/cli-ui/apollo-server/connectors/tasks.js
@@ -17,6 +17,7 @@ const { notify } = require('../util/notification')
17
18
const MAX_LOGS = 2000
19
const VIEW_ID = 'vue-project-tasks'
20
+const WIN_ENOENT_THRESHOLD = 500 // ms
21
22
const tasks = new Map()
23
@@ -411,6 +412,11 @@ async function run (id, context) {
411
412
child.on('exit', onExit)
413
414
child.on('error', error => {
415
+ const duration = Date.now() - task.time
416
+ // hackish workaround for https://github.com/vuejs/vue-cli/issues/2096
417
+ if (process.platform === 'win32' && error.code === 'ENOENT' && duration > WIN_ENOENT_THRESHOLD) {
418
+ return onExit(null)
419
+ }
420
updateOne({
421
id: task.id,
422
status: 'error'
0 commit comments