ffmpegwasm / ffmpegwasm/ffmpeg.wasm

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

Abierto
#407 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C
Estrellas
17.8k
Forks
1.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.