ffmpegwasm / ffmpegwasm/ffmpeg.wasm

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

Đang mở
#407 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
17.8k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.