I use minio.js in my vue+vite project,but when i tried to create clinet ,occured error:
_stream_readable.js:48
Uncaught ReferenceError: global is not defined
at node_modules/readable-stream/lib/_stream_readable.js (_stream_readable.js:48:21)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at node_modules/readable-stream/readable-browser.js (readable-browser.js:1:28)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at node_modules/block-stream2/index.js (index.js:1:23)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at node_modules/minio/dist/main/minio.js (minio.js:21:43)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at dep:minio:1:16
and i find some useful infomation :
can you help me to aviod this problem ?(not very smooth english, sry ^-^)
I use minio.js in my vue+vite project,but when i tried to create clinet ,occured error:
_stream_readable.js:48
Uncaught ReferenceError: global is not defined
at node_modules/readable-stream/lib/_stream_readable.js (_stream_readable.js:48:21)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at node_modules/readable-stream/readable-browser.js (readable-browser.js:1:28)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at node_modules/block-stream2/index.js (index.js:1:23)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at node_modules/minio/dist/main/minio.js (minio.js:21:43)
at __require (chunk-OYVF2PGL.js?v=c8651b20:10:50)
at dep:minio:1:16
and i find some useful infomation :
readable-streamMatrixAI/js-virtualfs#4;its maybe a rollup issue
can you help me to aviod this problem ?(not very smooth english, sry ^-^)