ffmpegwasm / ffmpegwasm/ffmpeg.wasm

SvelteKit demo is broken due to "type" not being set in pkg json

Open
#780 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**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**
![CleanShot 2024-09-16 at 12 01 37@2x](https://github.com/user-attachments/assets/de13db55-f56c-4df5-9e13-cc9cff017601)

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.