Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minio and node 21 import error. #1217

Open
WegDamit opened this issue Oct 23, 2023 · 1 comment
Open

minio and node 21 import error. #1217

WegDamit opened this issue Oct 23, 2023 · 1 comment

Comments

@WegDamit
Copy link

Not a bug, but an upgrade issue:
Node 21 is new and broke "something"(tm) that minio needs...

Using node 21 in an svelte app with vite
the import

import * as Minio from 'minio';

fails with node 21 but works in node 20.8

Error when evaluating SSR module /src/hooks.server.js: failed to import "minio"
|- TypeError: Cannot read properties of undefined (reading 'includes')
    at Object.<anonymous> (/.../node_modules/.pnpm/[email protected]/node_modules/browser-or-node/lib/index.js:19:133)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1201:32)
    at Module._load (node:internal/modules/cjs/loader:1017:12)

and a lot more internal modules more.
when staring using pnpm run dev

@trim21
Copy link
Contributor

trim21 commented Oct 23, 2023

look like a bug of browser-or-node flexdinesh/browser-or-node#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants