ffmpegwasm / ffmpegwasm/ffmpeg.wasm

webpack error when module contains dynamic import: "Automatic publicPath is not supported in this browser" (when running tests)

未关闭
#545 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
Although I can run my project which contains latest @ffmpeg/ffmpeg package (0.12.3) without any problem, my project's tests (those which imports a module that imports FFmpeg) fail with the following error: "Automatic publicPath is not supported in this browser."
As lots of people suggest in [this github issue](https://github.com/cypress-io/cypress/issues/18435), (and [the pr that is for solving this issue](https://github.com/cypress-io/cypress/pull/23760/files) also confirms) it seems adding publicPath:"" to the webpack.config.js can solve the issue...

**To Reproduce**
I think I can make a small project with some tests which imports FFmpeg (or import a module which imports FFmpeg) like the state of my own project which has the problem, if needed...

**Expected behavior**
no "Automatic publicPath is not supported in this browser." error when running tests...

**Screenshots**
![Untitled](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/79265397/a9e503d6-b4f1-4ae3-b257-c2ab8652b1ee)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。