Commit cc9e4a8
fix: add @objectstack/spec to apps/demo deps and promote to runtime dep in @objectql/types
The Vercel serverless function failed at runtime with ERR_MODULE_NOT_FOUND
because @objectstack/core could not resolve @objectstack/spec after pnpm
symlinks were dereferenced by patch-symlinks.cjs.
1. apps/demo/package.json: add @objectstack/spec ^3.2.8 as devDependency
so it is present in node_modules and dereferenced for Vercel bundling.
2. @objectql/types/package.json: move @objectstack/spec and zod from
devDependencies to dependencies because compiled JS output contains
runtime imports via z.infer<typeof Data.X> patterns.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Agent-Logs-Url: https://github.com/objectstack-ai/objectql/sessions/367bb53d-1d41-42c8-b300-0779006e45dc1 parent 3d25537 commit cc9e4a8
File tree
4 files changed
+18
-6
lines changed- apps/demo
- packages/foundation/types
4 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments