ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
13.63k stars 787 forks source link

failed to import ffmpeg-core.js #536

Closed himipeng closed 11 months ago

himipeng commented 11 months ago

Describe the bug When it trigger ffmpeg.load({...})(click the button in demo), the error occur "Uncaught (in promise) Error: failed to import ffmpeg-core.js". image Even if the network has loaded these file successfully(without cache). image It occurs in both vite's dev server and build.

To Reproduce I almostly copy the demo "https://ffmpegwasm.netlify.app/docs/getting-started/usage#transcoding-video-multi-thread" to a vite-react project. this is my github repo: https://github.com/himipeng/ffmpeg-wasm/blob/master/src/views/pages/Page1/index.tsx

Desktop:

jeromewu commented 11 months ago

Most of vite issues are fixed in @ffmpeg/ffmpeg 0.12.3, please check here for an react+vite example: https://github.com/ffmpegwasm/ffmpeg.wasm/tree/main/apps/react-vite-app

himipeng commented 11 months ago

A new error occur. When I run the dev server,it was: image

while i build,it came to: image

something wrong with my code? image

image

one-god commented 7 months ago

i face some issue