Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load error #740

Open
LeoMsky opened this issue Apr 25, 2024 · 0 comments
Open

load error #740

LeoMsky opened this issue Apr 25, 2024 · 0 comments

Comments

@LeoMsky
Copy link

LeoMsky commented Apr 25, 2024

When the code runs to:

await ffmpeg.load({
    coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, 'text/javascript'),
    wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, 'application/wasm'),
});

an error occurs:

814.ffmpeg.js:1 Uncaught SyntaxError: Unexpected token '<' (at 814.ffmpeg.js:1:1)


config:
tsdx+react+typescript
"@ffmpeg/ffmpeg": "^0.12.10",
"@ffmpeg/util": "^0.12.1",
const baseURL = 'https://unpkg.com/@ffmpeg/[email protected]/dist/esm';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant