Skip to content

Commit 997426e

Browse files
Copilothotlong
andcommitted
fix: add zod to apps/demo devDependencies for Vercel deployment
@objectstack/spec depends on zod at runtime. After patch-symlinks.cjs dereferences pnpm symlinks for Vercel bundling, zod must be present as an explicit dependency in apps/demo/node_modules/. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> Agent-Logs-Url: https://github.com/objectstack-ai/objectql/sessions/e3b65dd9-3cb4-4a2e-88fa-2100507f9646
1 parent 7fa1acd commit 997426e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12-
- **`apps/demo`** — added explicit `@objectstack/spec` devDependency. The Vercel serverless function failed at runtime with `ERR_MODULE_NOT_FOUND` because `@objectstack/core` could not resolve its transitive `@objectstack/spec` dependency after pnpm symlinks were dereferenced by `patch-symlinks.cjs`. Adding the explicit dependency ensures the package is present at the top level of `node_modules/` for Vercel bundling.
12+
- **`apps/demo`** — added explicit `@objectstack/spec` and `zod` devDependencies. The Vercel serverless function failed at runtime with `ERR_MODULE_NOT_FOUND` because transitive dependencies could not be resolved after pnpm symlinks were dereferenced by `patch-symlinks.cjs`. Adding them as explicit dependencies ensures they are present at the top level of `node_modules/` for Vercel bundling.
1313
- **`@objectql/types`** — moved `@objectstack/spec` and `zod` from `devDependencies` to `dependencies`. The compiled JS output contains runtime imports of `@objectstack/spec` (via `z.infer<typeof Data.X>` patterns), so they must be declared as production dependencies.
1414

1515
### Added

apps/demo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"@objectstack/studio": "^3.2.8",
3737
"@types/node": "^20.19.37",
3838
"hono": "^4.12.8",
39-
"typescript": "^5.9.3"
39+
"typescript": "^5.9.3",
40+
"zod": "^4.3.6"
4041
},
4142
"engines": {
4243
"node": ">=20"

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)