Open tomahawkfeng opened 9 months ago
Many other people have reported a similar issue with the same root cause as yours. There is a fix pull request (#562) available that has not been integrated yet. I forked the repo to get the fix and some other improvements. Forking might be your best bet.
@tomahawkfeng I faced the same issue, solve with adding this config into vite.config.ts
optimizeDeps: {
exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'],
},
follow this project configure
Hi. My project is based on Quasar+vue3+vite,I have installed the latest version of @ffmpeg/ffmpeg.But there is a problem, that is, when await ffmpeg.load() is executed, a 504 error about worker.js will appear.This strange url appeared http://localhost:3000/@fs/D:/Vue/xstudioquasar/node_modules/.q-cache/vite/spa/deps/worker.js?type=module&worker_url_file.
Please help me to achieve the goal of normal operation by modifying the configuration of quasar.config.js
Thanks.![1695716317121](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/92967535/7b06792e-456d-4104-ad63-ed51a4436365)