From 52b5a7992a1a7446ac766b473003f10668cce62a Mon Sep 17 00:00:00 2001 From: Yakir Date: Fri, 30 Apr 2021 22:11:00 +0200 Subject: [PATCH] fix: patch-nx-dep-graph for windows on windows process.env.INIT_CWD is undefined, which makes the script fail because path.join expects strings --- libs/vue/patch-nx-dep-graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vue/patch-nx-dep-graph.js b/libs/vue/patch-nx-dep-graph.js index 4b152dfc..c9d5d80c 100644 --- a/libs/vue/patch-nx-dep-graph.js +++ b/libs/vue/patch-nx-dep-graph.js @@ -7,7 +7,7 @@ const path = require('path'); */ function patchNxDepGraph() { const filePath = path.join( - process.env.INIT_CWD, + process.env.INIT_CWD || '', 'node_modules/@nrwl/workspace/src/core/project-graph/build-dependencies/typescript-import-locator.js' ); try {