ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Module not found core import error NEXTJS 13

Đang mở
#455 6 bình luận 2 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**
Module not found even when providing unpkg url as corepath
Locally works without defining corepath but same does not work when deployed.
When providing anything as corepath it fails both locally and when deployed.

I have tried multiple versions of @ffmpeg and @ffmpeg/core, and they have the same issue.

ComingAlive has created this with nextjs https://github.com/comingAlive/ffmpegaudioextract.vercel.app

And it seems to work fine with defining the corepath. But he seems to be using nextjs 10 and an older version of webpack.
So I'm not too sure what the issue here is. Maybe something changed in nextjs 13 that's affecting this.

**To Reproduce**
Steps to reproduce the behavior:
Create next app
Create createFFmpeg
Define corepath

**Screenshots**
Logs from Vercel without corepath and with corepath.

![image](https://user-images.githubusercontent.com/32914211/209476823-c16f947c-ba7d-4dce-af9d-2d71953c4b70.png)

![image](https://user-images.githubusercontent.com/32914211/209476773-66dd3268-7867-4ce3-a473-37c1ed54c1f1.png)

**Desktop (please complete the following information):**
- Ubuntu 20.04

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.