Skip to content

Commit 251509c

Browse files
author
Guillaume Chau
committed
fix(ui): check current project still exists
1 parent 588ad75 commit 251509c

File tree

1 file changed

+4
-0
lines changed
  • packages/@vue/cli-ui/src/graphql-api/connectors

1 file changed

+4
-0
lines changed

packages/@vue/cli-ui/src/graphql-api/connectors/projects.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ function autoClean (projects, context) {
5252
}
5353

5454
function getCurrent (context) {
55+
if (currentProject && !fs.existsSync(currentProject.path)) {
56+
log('Project folder not found', currentProject.id, currentProject.path)
57+
return null
58+
}
5559
return currentProject
5660
}
5761

0 commit comments

Comments
 (0)