Skip to content

cannot build with vite #1002

@yungxiaomcc

Description

@yungxiaomcc

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 ^-^)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions