Skip to content

react-vite-app doesn't work with current URL that uses version 0.12.10 #868

Open
@donaldchen

Description

@donaldchen

Describe the bug
Run the react-vite-app in this project with npm install --legacy-peer-deps or npm install --no-workspaces and then npm run dev

To Reproduce
Press the button for loading ffmpeg.

Expected behavior
ffmpeg loads, and there's a button to transcode a video with ffmpeg

Actual Behavior / Screenthos
ffmpeg fails to load because of a 404 error.

Image

Additional context
Changing the URL at

const baseURL = "https://unpkg.com/@ffmpeg/[email protected]/dist/esm";
from ""https://unpkg.com/@ffmpeg/[email protected]/dist/esm" to ""https://unpkg.com/@ffmpeg/[email protected]/dist/esm" fixes the issue, but I'm wondering if some configuration for hosting the ffmpeg core files can be updated to make 0.12.10 work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions