You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the @ffmpeg/util package, there is no json "type": "module", Due to this vite breaks while building the code because it needs esm modules to run.
To Reproduce
Clone the sveltekit example, npm i, and npm run dev.
Expected behavior
The example should work when I do npm run dev
Screenshot
Desktop (please complete the following information):
OS: [e.g. iOS] - MacOS 14.6.1
Browser [e.g. chrome, safari] - Chrome
Version [e.g. 22] - 128
Additional context
Setting json "type": "module" in util package's package.json, the build worked.
The text was updated successfully, but these errors were encountered:
Another workaround that worked for me was importing from the index.js file explicitly: import { fetchFile, toBlobURL } from '../../node_modules/@ffmpeg/util/dist/esm/index.js';
Describe the bug
In the @ffmpeg/util package, there is no
json "type": "module"
, Due to this vite breaks while building the code because it needs esm modules to run.To Reproduce
Clone the sveltekit example,
npm i
, andnpm run dev
.Expected behavior
The example should work when I do
npm run dev
Screenshot
Desktop (please complete the following information):
Additional context
Setting
json "type": "module"
in util package's package.json, the build worked.The text was updated successfully, but these errors were encountered: