Closed Osaxely closed 1 year ago
Can you share your code base via a github link?
Having the same problem with NextJS 13. Running regular webpack spits out
- warn ./node_modules/@ffmpeg/ffmpeg/dist/esm/worker.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/@ffmpeg/ffmpeg/dist/esm/worker.js
./node_modules/@ffmpeg/ffmpeg/dist/esm/classes.js
./node_modules/@ffmpeg/ffmpeg/dist/esm/index.js
./src/app/tools/gifr/page.tsx
Running with the new turbopack feature does not give an y errors or warnings. Tried with node 16, 18 and 20 running on Arch Linux.
EDIT: Also getting this error using webpack when getting ffmpeg-core js and wasm from unpkg
I've been using This example partially.
EDIT 2: Seems to be a problem with the version of ffmpeg core that I was using, copied the url from the docs page (This CDN Changing esm to umd made it everything work
EDIT3: Ffmpeg works, but I still get the warning
The error should be fixed in 0.12.3, the warning should be OK as long as ffmpeg.wasm works.
😁 It looks like v0.12.4 still has this problem:
Feel free to check nextjs example here: https://ffmpegwasm.netlify.app/docs/getting-started/examples
Describe the bug This critical error appears when I test my app on the following environment: React, Typescript and Webpack.
To Reproduce Steps to reproduce the behavior:
npm start
and the issue will occur.Expected behavior The library should be bundled without showing a critical warning.
Screenshots
Desktop (please complete the following information):
Additional context Here is my webpack config file in case it can help out:
And here is my tsconfig file: