catdad-experiments / libheif-js

🤳 libheif as an npm module
GNU Lesser General Public License v3.0
65 stars 3 forks source link

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #25

Closed dnakamashi closed 6 months ago

dnakamashi commented 6 months ago

Hey, first of all, thanks for building and open sourcing this lib.

I'm trying to use it in my react application bundling it with Webpack and I'm getting this error. Do you know what can it be?

Compiled with problems:X

WARNING in ./node_modules/libheif-js/libheif-wasm/libheif-bundle.js 1:235-242

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./node_modules/libheif-js/libheif-wasm/libheif-bundle.js 1:364-371

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
jocluzet commented 6 months ago

same issue for me...

catdad commented 6 months ago

This appears to be a duplicate of #23