Open asticode opened 8 months ago
Name | Link |
---|---|
Latest commit | d76af5691716b3d28c5e38f3b0734f5a5248d05d |
Latest deploy log | https://app.netlify.com/sites/ffmpegwasm/deploys/6550a9f339a8440008200adb |
Just a little +1 from me. I'm seeing the same error when using Remix.
I ran into the same problem. If you need a work around, this is what worked for me.
Install patch-package
npm install patch-package --save -dev
Add postinstall
script to package.json
// package.json
"scripts": {
...
"postinstall": "patch-package"
},
patch-package
with the --exclude
flag npx patch-package --exclude 'nothing' @ffmpeg/util
.patch
file is created in /patches
E.g
// @ffmpeg+util+0.12.1.patch
diff --git a/node_modules/@ffmpeg/util/package.json b/node_modules/@ffmpeg/util/package.json
index 3afedb4..0a48d3a 100644
--- a/node_modules/@ffmpeg/util/package.json
+++ b/node_modules/@ffmpeg/util/package.json
@@ -3,6 +3,7 @@
"version": "0.12.1",
"description": "browser utils for @ffmpeg/*",
"main": "./dist/cjs/index.js",
+ "type": "module",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
Hope that helps someone!
I'm using Vite and pnpm and when trying to use @ffmpeg/util I'm getting this error:
Adding
"type": "module"
to@ffmpeg/util
'spackage.json
fixes the error 👍