ffmpegwasm / ffmpeg.wasm

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

About worker.js #594

Open tomahawkfeng opened 9 months ago

tomahawkfeng commented 9 months ago

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

LostBeard commented 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.

ledunguit commented 8 months ago

@tomahawkfeng I faced the same issue, solve with adding this config into vite.config.ts

optimizeDeps: {
    exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'],
},
ihengshuai commented 5 months ago

follow this project configure