diff --git a/package.json b/package.json
index bc99d0eee4bfa61065da5709198bfb737d99ff02..65a4cd9158c88da56f2d1297da4e4e5bb017aed6 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,7 @@
     "@types/prompts": "2.0.1",
     "@types/tar": "6.1.5",
     "@types/validate-npm-package-name": "3.0.0",
-    "@vercel/ncc": "0.34.0",
+    "@vercel/ncc": "0.38.1",
     "async-retry": "1.3.1",
     "async-sema": "3.0.1",
     "ci-info": "github:watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
diff --git a/questions.ts b/questions.ts
index dc42fa06fda570b27fb1c6318f5ea58d90b62edc..0e671184e8aba4e62fd546af16095cb3486a58b8 100644
--- a/questions.ts
+++ b/questions.ts
@@ -7,6 +7,7 @@ import prompts from "prompts";
 import { InstallAppArgs } from "./create-app";
 import { TemplateDataSourceType, TemplateFramework } from "./helpers";
 import { COMMUNITY_OWNER, COMMUNITY_REPO } from "./helpers/constant";
+import { templatesDir } from "./helpers/dir";
 import { getAvailableLlamapackOptions } from "./helpers/llama-pack";
 import { getRepoRootFolders } from "./helpers/repo";
 
@@ -89,7 +90,7 @@ const getVectorDbChoices = (framework: TemplateFramework) => {
   ];
 
   const vectordbLang = framework === "fastapi" ? "python" : "typescript";
-  const compPath = path.join(__dirname, "..", "templates", "components");
+  const compPath = path.join(templatesDir, "components");
   const vectordbPath = path.join(compPath, "vectordbs", vectordbLang);
 
   const availableChoices = fs