=== test 1: structural recursion (alias nested in object prop) ===
/app/ark/json-schema/refExperiment.ts:11
	() => resolvedDef!.internal as never as BaseRoot,
	                   ^

TypeError: Cannot read properties of undefined (reading 'internal')
    at AliasNode.resolve (/app/ark/json-schema/refExperiment.ts:11:21)
    at AliasNode._resolve (/app/ark/schema/roots/alias.ts:112:33)
    at AliasNode.get resolution (/app/ark/schema/roots/alias.ts:107:23)
    at bootstrapAliasReferences (/app/ark/schema/scope.ts:757:53)
    at SchemaScope.finalize (/app/ark/schema/scope.ts:712:3)
    at schema (/app/ark/schema/scope.ts:410:8)
    at <anonymous> (/app/ark/json-schema/refExperiment.ts:15:15)
    at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:681:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

Node.js v22.23.2
node:internal/errors:983
  const err = new Error(message);
              ^

Error: Command failed: node ./ark/json-schema/refExperiment.ts
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at checkExecSyncError (node:child_process:916:11)
    at execSync (node:child_process:988:15)
    at file:///app/ark/repo/ts.js:9:1
    at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:681:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 362,
  stdout: null,
  stderr: null
}

Node.js v22.23.2
