ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

how to use ffmpeg.wasm with webpack5 ?

Open jojowwbb opened this issue 2 years ago • 2 comments

the emssage:

Uncaught SyntaxError: Cannot use 'import.meta' outside a module (at 639c66ec-fbe5-4b92-a104-83e80b724a2e:3:27)

jojowwbb avatar Jan 11 '24 06:01 jojowwbb

Hi, i think you have same error when we try to use it in Angular. For a while, i'm using this code provided by @LostBeard: https://github.com/ffmpegwasm/ffmpeg.wasm/issues/548#issuecomment-1707248897 (Check the whole issue to know what happens)

They have merged some code but it don't work properly yet. https://github.com/ffmpegwasm/ffmpeg.wasm/pull/562

ronaldohoch avatar Feb 06 '24 18:02 ronaldohoch

You can exclude /@ffmpeg\/ffmpeg/ in webpack config to resolve it.

superbartman avatar Feb 27 '24 06:02 superbartman