{"record":{"id":"7b14ea0425e466e5","repo":"windmill-labs/windmill","slug":"no-output-files-found-for-path","errorCode":null,"errorMessage":"No output files found for ${path}","messagePattern":"No output files found for (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/script/script.ts","lineNumber":448,"sourceCode":"          format: format,\n          bundle: true,\n          write: false,\n          external: codebase.external,\n          inject: codebase.inject,\n          define: codebase.define,\n          loader: codebase.loader ?? { \".node\": \"file\" },\n          outdir: \"/\",\n          platform: \"node\",\n          packages: \"bundle\",\n          target: format == \"cjs\" ? \"node20.15.1\" : \"esnext\",\n          banner: codebase.banner,\n          // ...(codebase.banner != null && { banner: codebase.banner }),\n        });\n        const endTime = performance.now();\n        bundleContent = out.outputFiles[0].text;\n        outputFiles = out.outputFiles ?? [];\n        if (outputFiles.length == 0) {\n          throw new Error(`No output files found for ${path}`);\n        }\n        log.info(\n          `Finished bundling ${path}: ${(bundleContent.length / 1024).toFixed(\n            0\n          )}kB (${(endTime - startTime).toFixed(0)}ms)`\n        );\n      }\n      if (outputFiles.length > 1) {\n        log.info(\n          `Found multiple output files for ${path}, creating a tarball... ${outputFiles\n            .map((file) => file.path)\n            .join(\", \")}`\n        );\n        forceTar = true;\n        const startTime = performance.now();\n        const mainPath = path.split(SEP).pop()?.split(\".\")[0] + \".js\";\n        const mainContent =\n          outputFiles.find((file) => file.path == \"/\" + mainPath)?.text ?? \"\";","sourceCodeStart":430,"sourceCodeEnd":466,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/script/script.ts#L430-L466","documentation":"After an esbuild bundle of a bundled script (bundle: true, write: false), outputFiles came back empty, so there is no bundle text to deploy. This fires on unexpected esbuild behavior/failure rather than user input.","triggerScenarios":"Thrown at cli/src/commands/script/script.ts:448 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the push; a transient esbuild failure can yield no outputs.","Check the script's build/codebase settings in its metadata for options that suppress output.","Report if reproducible: the bundle succeeded without producing output files."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}