OpenCut-app / OpenCut-app/OpenCut

[BUG] Build fails: Cannot find module '@/hooks/use-keyboard-shortcuts'

Open
#360 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

Windows 11

Browser

N/A – error occurs during docker compose build process

Current Behavior

The Docker build fails during the bun run build step with a TypeScript error indicating that the file @/hooks/use-keyboard-shortcuts cannot be found. The build exits with code 1 and does not complete.

Relevant error:

`Type error: Cannot find module '@/hooks/use-keyboard-shortcuts' or its corresponding type declarations.

> 3 | import { useKeyboardShortcuts } from "@/hooks/use-keyboard-shortcuts";`
Image

I have just taken a pull request

Image
Expected Behavior

No response

Recurrence Probability

Always

Steps To Reproduce
  • Run docker compose build --no-cache
  • Observe the build process
  • It fails on bun run build during the compilation of keyboard-shortcuts-help.tsx
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 keyboard-shortcuts-help.tsx and inspect the import of @/hooks/use-keyboard-shortcuts, then run docker compose build --no-cache to reproduce the failure during bun run build. Trace whether the referenced hook exists at the expected path and verify that the Docker build completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, docker-compose, typescript
Domain
build-system, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.