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 Trace Error: Dependency Conflict Between Lifi and Swapkit-SDK #1171

Open
1 of 25 tasks
smart-developer-p opened this issue Jan 27, 2025 · 3 comments
Open
1 of 25 tasks
Labels
bug Something isn't working workaround

Comments

@smart-developer-p
Copy link

Current behavior

I’m encountering a module import trace error in my project after adding the @swapkit/sdk module alongside lifi. The issue seems to stem from a dependency conflict between the two modules.

When I was using @lifi/wallet-management and @lifi/widget, there was no error on my project. Once I installed @swapkit/sdk module I got import trace error.

Image

And I am using latest versions now. I am sharing my package.json file here.

{
"name": "swap-frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"doppler:dev": "doppler run --config dev -- next dev"
},
"dependencies": {
"@bigmi/react": "^0.1.0",
"@headlessui/react": "^2.2.0",
"@lifi/wallet-management": "^3.6.0",
"@lifi/widget": "^3.14.1",
"@mui/utils": "^6.2.1",
"@rainbow-me/rainbowkit": "^2.2.1",
"@solana/wallet-adapter-react-ui": "^0.9.35",
"@solana/wallet-adapter-solflare": "^0.6.28",
"@swapkit/sdk": "2.0.12",
"@tanstack/react-query": "^5.62.8",
"framer-motion": "^11.15.0",
"i18next": "^24.2.1",
"i18next-resources-to-backend": "^1.2.1",
"jotai": "^2.11.1",
"lodash": "^4.17.21",
"next": "15.1.1",
"next-i18n-router": "^5.5.1",
"next-themes": "^0.4.4",
"numeral": "^2.0.6",
"pino-pretty": "^13.0.0",
"react": "^19.0.0",
"react-content-loader": "^7.0.2",
"react-dom": "^19.0.0",
"react-i18next": "^15.4.0",
"react-toastify": "^11.0.2",
"react-tooltip": "^5.28.0",
"shallow-equal": "^3.1.0",
"tailwind-merge": "^2.5.5",
"use-debounce": "^10.0.4",
"wagmi": "^2.14.9"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@trivago/prettier-plugin-sort-imports": "^5.2.0",
"@types/gtag.js": "^0.0.20",
"@types/lodash": "^4.17.14",
"@types/node": "^20",
"@types/numeral": "^2.0.5",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-next": "^0.0.0",
"eslint-plugin-prettier": "^5.2.1",
"postcss": "^8",
"prettier": "^3.4.2",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}

Please help me. I need help asap! 🙏

Expected behavior

.

Functionality

  • Swap
  • Liquidity
  • Savers
  • Loan
  • Wallet
  • Transactions
  • Api
  • Other

Packages

  • @swapkit/sdk
  • @swapkit/core
  • @swapkit/api
  • @swapkit/helpers
  • @swapkit/tokens
  • @swapkit/toolbox-cosmos
  • @swapkit/toolbox-evm
  • @swapkit/toolbox-utxo
  • @swapkit/wallet-evm-extensions
  • @swapkit/wallet-keepkey
  • @swapkit/wallet-keplr
  • @swapkit/wallet-keystore
  • @swapkit/wallet-ledger
  • @swapkit/wallet-okx
  • @swapkit/wallet-trezor
  • @swapkit/wallet-wc
  • @swapkit/wallet-ctrl

Details

Image

@smart-developer-p smart-developer-p added the bug Something isn't working label Jan 27, 2025
@smart-developer-p
Copy link
Author

!!!

@toshiSat
Copy link

toshiSat commented Feb 6, 2025

I have this issue, without using the lifi, it seems like it's an issue solely with swapkit.

You can fix this by adding a resolutions to your project (yarn)

"resolutions": {
    "micro-key-producer": "^0.7.5"
  }

@ice-chillios
Copy link
Collaborator

ice-chillios commented Feb 14, 2025

@smart-developer-p We're currently preparing major release that will change how we bundle code. I hope that will resolve that issue. I think we will have some 4.0.0-beta.1 next week. For now

bun, pnpm, npm

package.json

+ "overrides": {
+   "@noble/hashes": "1.4.0"
+ },

yarn

package.json

+ "resolutions": {
+  "@noble/hashes": "1.4.0"
+ },

@ice-chillios ice-chillios mentioned this issue Feb 14, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working workaround
Projects
None yet
Development

No branches or pull requests

3 participants