Closed iongion closed 1 year ago
I had the same and fixed it by adding this to defineConfig
in vite.config.ts
optimizeDeps: {
exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
},
Yeah, I think optimizeDeps.exclude is a great solution! Will add it to the doc when possible.
This helped unblock me. Cheers!
Unf, thanks SO MUCH for this @JanMisker. Was scratching my heads for days on this one.
Awesome, this solved it, wiki notes updates
Describe the bug
Using
0.12.1
- in a vite react browser applicationThis throws a 504
https://localhost:5173/node_modules/.vite/deps/worker.js?type=module&worker_file
To Reproduce
Steps to reproduce the behavior:
await ffmpeg.load(opts);
Expected behavior Library should load
Screenshots Attached
Desktop (please complete the following information):
Additional context Tried to exemplify in a code sanbox https://codesandbox.io/p/sandbox/hopeful-ptolemy-j5cjpn but the sandbox has some issues