I installed metaplex (latest, down to 0.8.10) in a new Vite React app (TypeScript), and when using the createUmi function, it is erroring out with:

TypeError: Cannot read properties of undefined (reading 'prototype')

enter image description here var streamDestructionSupported = "destroy" in import_stream.default.Readable.prototype;


const umi = createUmi("https://api.mainnet-beta.solana.com");

Any idea's on why and how to fix this?

  • can you share the full code snippets including the imports
    – Jimii
    Apr 26 at 15:49


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.