ngx-socket-io icon indicating copy to clipboard operation
ngx-socket-io copied to clipboard

CommonJS or AMD dependencies can cause optimization bailouts

Open dj-fiorex opened this issue 4 years ago • 2 comments

Hello, i'm trying to use your library in my Angular 10 project, but when i build i receive this warning: WARNING in C:\Users\carme\Documents\Haptica\LineaVita\Web\linea-vita\node_modules\ngx-socket-io\__ivy_ngcc__\fesm2015\ngx-socket-io.js depends on 'socket.io-client'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

How can i fix this warning?

dj-fiorex avatar Nov 16 '20 16:11 dj-fiorex

Follow the link in your error: https://angular.io/guide/build#configuring-commonjs-dependencies

And execute the steps there. I don't think there's anything we can do since we're a wrapper around that dependency.

Helveg avatar Nov 17 '20 12:11 Helveg