ffmpegwasm / ffmpeg.wasm

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

in umi,ffmpeg.load fail,indicate Error: Cannot find module #552

Open lyqline opened 1 year ago

lyqline commented 1 year ago

Describe the bug

in umi,ffmpeg.load fail,indicate:

Uncaught (in promise) Error: Cannot find module 'blob:http://127.0.0.1:8001/594fd908-516c-4e5e-9160-02a0b11302f5' at node_modules_ffmpeg_ffmpeg_dist_esm_lazy_recursive.js:14:11

To Reproduce Please provide a GitHub link or code snippet.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

jeromewu commented 1 year ago

I have no experience in umijs, so it is unlikely I can help.

tangbzai commented 1 year ago

umi need use umd standard, more detail see umi-discussions.


umi 需要使用 umd 的模块规范,具体看 umi-discussions.