{"record":{"id":"602c5d3cd493bdb8","repo":"oven-sh/bun","slug":"could-not-process-input-line-spaces-at","errorCode":null,"errorMessage":"Could not process input:\n${line}\n${spaces}^\n    at ${filename}:${lineNumber}:${columnNumber}","messagePattern":"Could not process input:\n(.+?)\n(.+?)\\^\n    at (.+?):(.+?):(.+?)","errorType":"exception","errorClass":"SyntaxError","httpStatus":null,"severity":"error","filePath":"src/codegen/bundle-functions.ts","lineNumber":136,"sourceCode":"    if (!match) {\n      const pos = originalContents.length - contents.length;\n      let lineNumber = 1;\n      let columnNumber = 1;\n      let lineStartPos = 0;\n      for (let i = 0; i < pos; i++) {\n        if (originalContents[i] === \"\\n\") {\n          lineNumber++;\n          columnNumber = 1;\n          lineStartPos = i + 1;\n        } else {\n          columnNumber++;\n        }\n        if (i === pos) {\n          break;\n        }\n      }\n      const lineEndPos = lineStartPos + originalContents.slice(lineStartPos).indexOf(\"\\n\");\n      throw new SyntaxError(\n        \"Could not process input:\\n\" +\n          originalContents.slice(lineStartPos, lineEndPos) +\n          \"\\n\" +\n          \" \".repeat(pos - lineStartPos) +\n          \"^\" +\n          \"\\n    at \" +\n          filename +\n          \":\" +\n          lineNumber +\n          \":\" +\n          columnNumber,\n      );\n    }\n    contents = contents.slice(match.index!);\n    if (match[1] === \"import\") {\n      // TODO: we may want to do stuff with these\n      const i = contents.indexOf(\";\");\n      contents = contents.slice(i + 1);","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/codegen/bundle-functions.ts#L118-L154","documentation":"Error \"Could not process input:\n${line}\n${spaces}^\n    at ${filename}:${lineNumber}:${columnNumber}\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/codegen/bundle-functions.ts:136 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}