{"record":{"id":"5e53fb7f1580eaac","repo":"remotion-dev/remotion","slug":"rendermediaonlambda-has-moved-to-remotion-lamb","errorCode":null,"errorMessage":"renderMediaOnLambda() has moved to `@remotion/lambda-client`. Please import it from there.","messagePattern":"renderMediaOnLambda\\(\\) has moved to `@remotion/lambda-client`\\. Please import it from there\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/lambda/src/index.ts","lineNumber":91,"sourceCode":"import {\n\tLambdaInternals,\n\ttype _InternalOverallRenderProgress,\n} from './internals';\n\nexport type {WebhookPayload} from '@remotion/lambda-client';\n\n/**\n * @deprecated Use `bundle()` from `@remotion/bundler`, then pass its output to `deploySiteFromBundle()`.\n */\nconst deploySite: (args: DeploySiteInput) => DeploySiteOutput =\n\tdeploySiteImplementation;\n\n/**\n * @deprecated Import this from `@remotion/lambda-client` instead\n */\nconst renderMediaOnLambda = NoReactInternals.ENABLE_V5_BREAKING_CHANGES\n\t? () => {\n\t\t\tthrow new Error(\n\t\t\t\t'renderMediaOnLambda() has moved to `@remotion/lambda-client`. Please import it from there.',\n\t\t\t);\n\t\t}\n\t: deprecatedRenderMediaOnLambda;\n\n/**\n * @deprecated Import this from `@remotion/lambda-client` instead\n */\nconst getRenderProgress = NoReactInternals.ENABLE_V5_BREAKING_CHANGES\n\t? () => {\n\t\t\tthrow new Error(\n\t\t\t\t'getRenderProgress() has moved to `@remotion/lambda-client`. Please import it from there.',\n\t\t\t);\n\t\t}\n\t: deprecatedGetRenderProgress;\n\n/**\n * @deprecated Import this from `@remotion/lambda-client` instead","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/lambda/src/index.ts#L73-L109","documentation":"In Remotion v5 (when NoReactInternals.ENABLE_V5_BREAKING_CHANGES is true), renderMediaOnLambda() is no longer exported as a working function from @remotion/lambda. Instead, calling it throws to force migration to @remotion/lambda-client. The function is still exported for backwards import compatibility but is a throwing stub. This is a deliberate breaking change to split the client-side rendering APIs into their own package.","triggerScenarios":"Importing and calling renderMediaOnLambda() from @remotion/lambda in a Remotion v5 codebase where ENABLE_V5_BREAKING_CHANGES is enabled. The ternary assigns a throwing stub instead of the deprecated implementation.","commonSituations":"Upgrading a project from Remotion v4 to v5; code that was written against the v4 API where renderMediaOnLambda lived in @remotion/lambda; following an outdated tutorial or documentation page.","solutions":["Import renderMediaOnLambda from @remotion/lambda-client instead of @remotion/lambda.","Install @remotion/lambda-client if it is not already a dependency.","Update all imports of getRenderProgress, renderStillOnLambda, presignUrl, and getSites to @remotion/lambda-client as well (they all moved).","Consult the v5 migration guide for the full list of moved exports."],"exampleFix":"// before\nimport {renderMediaOnLambda} from '@remotion/lambda';\nconst {renderId} = await renderMediaOnLambda({\n  region: 'us-east-1',\n  composition: myComp,\n  serveUrl: 'https://...',\n});\n\n// after\nimport {renderMediaOnLambda} from '@remotion/lambda-client';\nconst {renderId} = await renderMediaOnLambda({\n  region: 'us-east-1',\n  composition: myComp,\n  serveUrl: 'https://...',\n});","handlingStrategy":"validation","validationCode":"function assertLambdaClientImport(sourceModule: string, fnName: string): void {\n  if (sourceModule === '@remotion/lambda' && NoReactInternals.ENABLE_V5_BREAKING_CHANGES) {\n    throw new Error(\n      `${fnName} must be imported from @remotion/lambda-client in v5.`\n    );\n  }\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["When upgrading to v5, search for all imports from @remotion/lambda and move renderMediaOnLambda, getRenderProgress, renderStillOnLambda, presignUrl, and getSites to @remotion/lambda-client.","Run a codemod or grep for '@remotion/lambda' imports after a major version bump.","Pin documentation to the version matching your installed Remotion release."],"tags":["lambda","v5-breaking-change","migration","import","lambda-client","deprecation"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}