Closed himipeng closed 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
A new error occur. When I run the dev server,it was:
while i build,it came to:
something wrong with my code?
i face some issue
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". Even if the network has loaded these file successfully(without cache). 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: