You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On v1, #1422 made Nuxt strict layout auto-extend SharedSchema via #arkenv/shared-schema and hard-fails when env/internal/shared.ts is missing (missingSharedTsError). That is louder than the pre-existing @arkenv/build shared-file gate and blocks a client + server–only strict setup even after the layout layer no longer requires the file.
The base layout / docs / CLI change lands on dev in #1448. This issue is the v1 forward-port plus the Nuxt-specific soft-fail that only exists on v1.
When internal/shared.ts is absent in Nuxt strict layout, #arkenv/shared-schema / client auto-extend uses an empty schema (same fallback already used outside strict via empty-shared-schema.ts), instead of missingSharedTsError.
When the file exists but has no usable SharedSchema export, fail with a clear diagnostic (broken file ≠ intentional empty).
Present SharedSchema still auto-merges when extends is omitted.
Problem
On
v1, #1422 made Nuxt strict layout auto-extendSharedSchemavia#arkenv/shared-schemaand hard-fails whenenv/internal/shared.tsis missing (missingSharedTsError). That is louder than the pre-existing@arkenv/buildshared-file gate and blocks a client + server–only strict setup even after the layout layer no longer requires the file.The base layout / docs / CLI change lands on
devin #1448. This issue is the v1 forward-port plus the Nuxt-specific soft-fail that only exists onv1.Related: #1448 (base on
dev), #1414, #1422Desired behavior
@arkenv/buildlayout detection /findSchemaPath/ docs / CLI wording ontov1.internal/shared.tsis absent in Nuxt strict layout,#arkenv/shared-schema/ client auto-extend uses an empty schema (same fallback already used outside strict viaempty-shared-schema.ts), instead ofmissingSharedTsError.SharedSchemaexport, fail with a clear diagnostic (broken file ≠ intentional empty).SharedSchemastill auto-merges whenextendsis omitted.Acceptance criteria
devand this work is unblocked.resolveLayout/findSchemaPathonv1match Make env/internal/shared.ts optional in strict layout (dev/v0) #1448 (shared file not required for strict).SharedSchemastill auto-merges whenextendsis omitted.SharedSchemaexport still fails with an actionable diagnostic.v1describe shared as optional; CLI still scaffoldsshared.tsby default.Out of scope
client.tsorserver.tsoptionalsharedPathextends: [SharedSchema]scaffolding beyond the shared layout-detection forward-portTarget branch
v1(blocked on #1448).