Skip to content

🎥 Make videos programmatically with React

Merge pull request #2789 from remotion-dev/error-wrapper-2

Jonny Burger1257fdd673d7
diff --cc packages/lambda/src/api/render-media-on-lambda.ts
index 4712c05805,31cd8b7c4d..aed0b6f668
--- a/packages/lambda/src/api/render-media-on-lambda.ts
+++ b/packages/lambda/src/api/render-media-on-lambda.ts
@@@ -10,9 -10,10 +10,10 @@@ import type
X264Preset,
} from '@remotion/renderer';
import type {BrowserSafeApis} from '@remotion/renderer/client';
+ import {PureJSAPIs} from '@remotion/renderer/pure';
import type {AwsRegion} from '../pricing/aws-regions';
import {callLambda} from '../shared/call-lambda';
-import type {OutNameInput, Privacy} from '../shared/constants';
+import type {OutNameInput, Privacy, WebhookOption} from '../shared/constants';
import {LambdaRoutines} from '../shared/constants';
import type {DownloadBehavior} from '../shared/content-disposition-header';
import {getCloudwatchRendererUrl, getS3RenderUrl} from '../shared/get-aws-urls';
diff --cc packages/renderer/src/render-frames.ts
index 5a979608c6,a61b8aa38b..28dc28302a
--- a/packages/renderer/src/render-frames.ts
+++ b/packages/renderer/src/render-frames.ts
@@@ -51,12 -51,8 +51,13 @@@ import type {AnySourceMapConsumer} fro
import {takeFrameAndCompose} from './take-frame-and-compose';
import {truthy} from './truthy';
import type {OnStartData, RenderFramesOutput} from './types';
+import {
+ validateDimension,
+ validateDurationInFrames,
+ validateFps,
+} from './validate';
import {validateScale} from './validate-scale';
+ import {wrapWithErrorHandling} from './wrap-with-error-handling';
const MAX_RETRIES_PER_FRAME = 1;
diff --cc packages/renderer/src/render-still.ts
index 18d93027f3,b60ef4b379..18f3b6b110
--- a/packages/renderer/src/render-still.ts
+++ b/packages/renderer/src/render-still.ts
@@@ -37,13 -37,9 +37,14 @@@ import {seekToFrame} from './seek-to-fr
import {setPropsAndEnv} from './set-props-and-env';
import type {AnySourceMapConsumer} from './symbolicate-stacktrace';
import {takeFrameAndCompose} from './take-frame-and-compose';
+import {
+ validateDimension,
+ validateDurationInFrames,
+ validateFps,
+} from './validate';
import {validatePuppeteerTimeout} from './validate-puppeteer-timeout';
import {validateScale} from './validate-scale';
+ import {wrapWithErrorHandling} from './wrap-with-error-handling';
type InternalRenderStillOptions = {
composition: VideoConfig;