Skip to content

fix(editor-web): resolve API crashes and strict typescript compilation errors#4

Merged
SloPOS merged 4 commits into
SloPOS:mainfrom
enieuwy:fix-editor-web-stability
May 1, 2026
Merged

fix(editor-web): resolve API crashes and strict typescript compilation errors#4
SloPOS merged 4 commits into
SloPOS:mainfrom
enieuwy:fix-editor-web-stability

Conversation

@enieuwy

@enieuwy enieuwy commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

This PR fixes multiple editor web app regressions that broke both the build step and the node server export APIs. Specifically:

  • Fixes a path.resolve crash for projectsDir() introduced in a previous draft PR when project fallback defaults were missing.
  • Declares missing internal Maps (aafBridgeJobs, edlJobs, etc.) inside vite.config.ts fixing tsc resolution failures.
  • Repairs AAF export bugs inside vite.config.ts by resolving probeFcpxmlMetadata correctly and casting keepRanges into expected timeline format objects via toTimelineKeepRanges.
  • Uses strictly typed union arrays for TranscribeStateLike and ExportStateLike to conform with React job polling constraints.
  • Installs and resolves missing @types/node, @types/react, @types/react-dom, and standardizes vite-env.d.ts to finally drop the compilation error count from ~1700 to 0.

Fixes #1

enieuwy added 4 commits April 22, 2026 11:13
The project save handler (and all other project API handlers) called
projectsDir() as a function, but no such function existed. Only
studioSettings.projectsDir (a string) was defined. This caused a
TypeError caught by the bare catch block, surfaced as the generic
'Failed to save project' error.

Also improves the catch block to log and return the actual error
message instead of swallowing it.
Repository owner deleted a comment from chatgpt-codex-connector Bot May 1, 2026
@SloPOS
SloPOS merged commit 964c676 into SloPOS:main May 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project save fails with "Failed to save project" — missing projectsDir() function

2 participants