ffmpegwasm / ffmpegwasm/ffmpeg.wasm

React app build failing after installing ffmpeg/ffmpeg

Đang mở
#512 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
17.8k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
Following react example as per https://ffmpegwasm.netlify.app/#demo, the build gives an error.
Compiled with problems:
×
ERROR in ./node_modules/@ffmpeg/ffmpeg/src/browser/defaultOptions.js 6:92-166
Module not found: Error: Can't resolve '/node_modules/@ffmpeg/core/dist/ffmpeg-core.js' in '/Users/anmolvarma/personal/new-things/guitar-chords/kareoke-app/node_modules/@ffmpeg/ffmpeg/src/browser'

**To Reproduce**
Steps to reproduce the behavior:
1. run `npm i @ffmpeg/ffmpeg`
2. Copy code from https://github.com/ffmpegwasm/react-app/blob/master/src/App.js
3. Run `npm start`

**Expected behavior**
The app should build successfully.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/11690393/b8d27605-649e-4037-9fd6-fcee869bc112)

**Desktop (please complete the following information):**
- OS: MacOs Ventura 13.4
- Browser: chrome and brave
- Version: [Version 1.52.126 Chromium: 114.0.5735.133 (Official Build) (arm64)](https://brave.com/latest/)

**Additional context**
Add any other context about the problem here.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.