Skip to content

Commit bf91533

Browse files
lbogdanAkryum
authored andcommitted
fix(cli-ui): ignore "false" ENOENT errors on Windows (vuejs#2294)
1 parent 78c6877 commit bf91533

File tree

1 file changed

+6
-0
lines changed
  • packages/@vue/cli-ui/apollo-server/connectors

1 file changed

+6
-0
lines changed

packages/@vue/cli-ui/apollo-server/connectors/tasks.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const { notify } = require('../util/notification')
1717

1818
const MAX_LOGS = 2000
1919
const VIEW_ID = 'vue-project-tasks'
20+
const WIN_ENOENT_THRESHOLD = 500 // ms
2021

2122
const tasks = new Map()
2223

@@ -411,6 +412,11 @@ async function run (id, context) {
411412
child.on('exit', onExit)
412413

413414
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+
}
414420
updateOne({
415421
id: task.id,
416422
status: 'error'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy