Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About worker.js #594

Open
tomahawkfeng opened this issue Sep 26, 2023 · 3 comments
Open

About worker.js #594

tomahawkfeng opened this issue Sep 26, 2023 · 3 comments

Comments

@tomahawkfeng
Copy link

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
Copy link
Contributor

LostBeard commented Sep 26, 2023

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
Copy link

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

optimizeDeps: {
    exclude: ['@ffmpeg/ffmpeg', '@ffmpeg/util'],
},

@ihengshuai
Copy link

follow this project configure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants