ffmpegwasm / ffmpegwasm/ffmpeg.wasm

why ffmpeg.wasm throwing this error Uncaught ReferenceError: createFFmpegCore is not defined vue

未关闭
#407 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

Hi i'm facing the problem of

> Uncaught ReferenceError: createFFmpegCore is not defined

It works in develop mode with `$npm run serve`

But when i do `$npm run build` it throws

> Uncaught ReferenceError: createFFmpegCore is not defined

this is how i'm doing in package.json

```
"dependencies": {
"@ffmpeg/core": "^0.10.0",
"@ffmpeg/ffmpeg": "^0.10.1",
}
```
I moved the @ffmpeg to **/public/@ffmpeg**

```
const ffmpeg = createFFmpeg({
corePath: "@ffmpeg/core/dist/ffmpeg-core.js",
log: true
});
```
Note: this error only happens in only build mode

https://stackoverflow.com/questions/73597491/why-ffmpeg-wasm-throwing-this-error-uncaught-referenceerror-createffmpegcore-is

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。