Skip to content

createUmi causes error in browser #158

@ethan-tqa

Description

@ethan-tqa

I am using SvelteKit. Just a basic SvelteKit template is good enough for reproducing this issue.
If the line of import below appears in the +page.svelte file, it will cause error.

import { createUmi } from '@metaplex-foundation/umi-bundle-defaults';

The error

TypeError: import_os.homedir is not a function

It can be traced back to SolanaCliConfig from @soceanfi/solana-cli-config imported by umi-addsa-web3js. I don't understand why SolanaCliConfig is needed for a client side library or why it is being included in the client side code.

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