-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error: Error: Cannot find module '@ffmpeg.wasm/core-mt' Require stack: #9
Comments
This is because CommonJS does not support top-level await. |
@DreamOfIce That's not the issue, Is there any other way to use @ffmpeg.wasm/core-mt |
I'm still working on that. |
@DreamOfIce Well i think its becuaes of Ram CPU etc.
my code
|
I had this issue on Vercel as well, it was because there is no import to tell it to include the lib. I used I'm battling other issues on vercel right now though with this lib, so I'll keep you posted |
I'm getting this error "Error: Error: Cannot find module '@ffmpeg.wasm/core-mt', When my code is deployed on Vercel (Node.js + TypeScript) Does I get confused because when I try to run the same code on my local machine it works fine
But as I deploy it on Vercel it gives that error. Obviously, i do have "@ffmpeg.wasm/core-mt" installed as said in the package https://github.com/FFmpeg-wasm/FFmpeg.wasm#installation So how do I fix it?
I'm currently using it like this
However, in the docs, i see doing like this
But then i start getting errors like "top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."
I tried a couple of StackOverflow solutions but nothing works in my case. So what should I do?
tsconfig.json:
The text was updated successfully, but these errors were encountered: