remotion-dev/remotion · error · Error

No effects were specified for duplication

Error message

No effects were specified for duplication

What it means

duplicateEffects guards against no-op requests the same way as deleteEffects: an empty request array throws 'No effects were specified for duplication', which the surrounding try/catch converts into a structured error result returned to the caller.

Source

Thrown at packages/browser-studio/src/browser-studio-operations.ts:987

							...project.files,
							...Object.fromEntries(
								updates.map((update) => [
									update.absolutePath,
									update.result.output,
								]),
							),
						},
					}),
				});
				return {success: true};
			} catch (error) {
				return getStructuredError(error);
			}
		},
		duplicateEffects: async (request) => {
			try {
				if (request.length === 0) {
					throw new Error('No effects were specified for duplication');
				}

				const project = getProject();
				const groups = new Map<
					string,
					Array<{
						effectIndex: number;
						sequenceNodePath: SequenceNodePath;
					}>
				>();
				for (const item of request) {
					const absolutePath = findProjectFile({
						filePath: item.fileName,
						project,
					});
					const group = groups.get(absolutePath) ?? [];
					group.push({
						effectIndex: item.effectIndex,

View on GitHub (pinned to b2f4e34732)

Solutions

  1. Check request.length > 0 before calling duplicateEffects.
  2. Verify the selection state that builds the duplication request.
  3. Disable the duplicate action when nothing is selected.
Defensive patterns

Strategy: validation

Validate before calling

if (request.length > 0) {
  const result = await operations.effect.duplicateEffects(request);
}

Prevention

When it happens

Trigger: Calling effectOperations.duplicateEffects([]) — e.g. a duplicate action whose target list was emptied by filtering or deselection before the request was built.

Common situations: Copy/paste flows where the clipboard selection resolved to zero effects; UI state bugs that build the request from a stale, now-empty selection.

Related errors


AI-assisted analysis of remotion-dev/remotion@b2f4e34732 (2026-08-22). Data as JSON: /api/errors/f421a7e7ba95d4f4. Report an issue: GitHub.