Skip to content

Next.js import uxuycom/web3-tg-sdk meet  #8

@carzygod

Description

@carzygod

Hello

When i try use @uxuycom/web3-tg-sdk in my own nextjs project .

using import { WalletTgSdk } from '@uxuycom/web3-tg-sdk';

And i try use it via :

      const { solana } = new WalletTgSdk({
          metaData: {
              icon: "icon_url",
              name: "name",
              hostname: "hostname"
          }
      });

Meet following issues :

 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 ✓ Compiled in 253ms
 ⨯ Error: Failed to load external module @uxuycom/web3-tg-sdk: SyntaxError: Unexpected token 'export'

How can i avoid or fix this issues ?

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