OpenCut-app / OpenCut-app/OpenCut

[BUG] the onContextMenu property is being used in the timeline-clip.tsx

Open
#155 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
89.8k
Forks
8.9k
PR merge metrics
No merged PRs in 30d

Description

Platform

Ubuntu

Browser

terminux

Current Behavior

The error indicates that the onContextMenu property is being used in the timeline-clip.tsx component, but it's not defined in the TimelineClipProps type.

=> ERROR [builder 13/13] RUN bun run build 103.8s

[builder 13/13] RUN bun run build:
0.240 $ next build
3.699 ▲ Next.js 15.3.4
3.699
3.747 Creating an optimized production build ...
78.03 ✓ Compiled successfully in 57s
78.09 Linting and checking validity of types ...
103.4 Failed to compile.
103.4
103.4 ./src/components/editor/timeline-clip.tsx:37:3
103.4 Type error: Property 'onContextMenu' does not exist on type 'TimelineClipProps'.
103.4
103.4 35 | zoomLevel,
103.4 36 | isSelected,
103.4 > 37 | onContextMenu,
103.4 | ^
103.4 38 | onClipMouseDown,
103.4 39 | onClipClick,
103.4 40 | }: TimelineClipProps) {
103.6 Next.js build worker exited with code: 1 and signal: null
103.7 error: script "build" exited with code 1


4 warnings found (use --debug to expand):

  • LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 22)
  • LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 23)
  • LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 32)
  • LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 33)
    Dockerfile:26

24 |
25 | WORKDIR /app/apps/web
26 | >>> RUN bun run build
27 |
28 | # Production image

ERROR: failed to solve: process "/bin/sh -c bun run build" did not complete successfully: exit code: 1
ERROR: Service 'web' failed to build : Build failed

Expected Behavior

No response

Recurrence Probability

Always

Steps To Reproduce

Install burn
clone git
docker-compose up -d

Anything else?

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/components/editor/timeline-clip.tsx and inspect TimelineClipProps alongside the onContextMenu usage. Run bun run build, then verify that the type-checking step completes without the reported error. Done means the web build succeeds with the context-menu prop correctly accounted for.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, docker, next.js, typescript
Domain
build-system, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.