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

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

Open
kasper-keunen opened this issue Jul 22, 2024 · 2 comments
Open

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

kasper-keunen opened this issue Jul 22, 2024 · 2 comments

Comments

@kasper-keunen
Copy link

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
@ex1st0r
Copy link
Contributor

ex1st0r commented Jul 23, 2024

Update sdk to latest version and try again, should work

@kasper-keunen
Copy link
Author

I tried this yesterday? Was this fixed since then? Will give it a try - i got this to work by manually installing the missing packages.

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