ffmpegwasm / ffmpegwasm/ffmpeg.wasm

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

オープン
#407 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。