> spritesheet1@1.0.0 start
> tsx index.ts
file:///home/ashton/video-to-spritesheet/node_modules/zod/lib/index.mjs:587
const error = new ZodError(ctx.common.issues);
^
ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"API_KEY"
],
"message": "Required"
}
]
at get error (file:///home/ashton/video-to-spritesheet/node_modules/zod/lib/index.mjs:587:31)
at ZodObject.parse (file:///home/ashton/video-to-spritesheet/node_modules/zod/lib/index.mjs:692:22)
at <anonymous> (/home/ashton/video-to-spritesheet/env.ts:13:23)
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5) {
issues: [
{
code: 'invalid_type',
expected: 'string',
received: 'undefined',
path: [ 'API_KEY' ],
message: 'Required'
}
],
addIssue: [Function (anonymous)],
addIssues: [Function (anonymous)],
errors: [
{
code: 'invalid_type',
expected: 'string',
received: 'undefined',
path: [ 'API_KEY' ],
message: 'Required'
}
]
}
Node.js v22.12.0
1 Like