Skip to content

Import error: Can't resolve aptos-labs/ts-sdk #648

@kasper-keunen

Description

@kasper-keunen

When i add the package to my dapp and impoort 'createRaribleSdk' immediatly upon building i get the following error:

./node_modules/@rarible/aptos-sdk/build/balance/balance.js:5:0
Module not found: Can't resolve '@aptos-labs/ts-sdk'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/@rarible/aptos-sdk/build/index.js
./node_modules/@rarible/sdk/build/sdk-blockchains/aptos/index.js
./node_modules/@rarible/sdk/build/index.js
./app/mint/_components/ContractDemo.tsx
./app/mint/page.tsx

Pretty much following the steps in the docs: https://docs.rarible.org/reference/getting-started. Is this a bug? Can't imagine as i literally did nothing else than install the package and import a function?

Screenshot 2024-07-22 at 18 20 18

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