junobuild / juno-js

JavaScript libraries for interfacing with Juno
MIT License
14 stars 1 forks source link

build warning: dependencies cannot be statically extracted #5

Closed peterpeterparker closed 1 year ago

peterpeterparker commented 1 year ago

When juno/core is used in an Ionic Angular app, following warning popups when built:

image

peterpeterparker commented 1 year ago

The warning "Critical dependency: require function is used in a way in which dependencies cannot be statically extracted" is throw by Webpack only. I am guessing it is related to the polyfill of the node library (buffer etc.) but not sure how to solve it.

peterpeterparker commented 1 year ago

Opened an issue in agent-js https://github.com/dfinity/agent-js/issues/696