fix: add @solana/web3.js dep; revert webpack fallback

This commit is contained in:
thesn10
2026-06-25 12:08:09 +02:00
parent fc0a4c96c1
commit 009183c545
2 changed files with 1 additions and 11 deletions

View File

@@ -3,17 +3,6 @@ import type { NextConfig } from 'next'
const config: NextConfig = {
reactStrictMode: true,
transpilePackages: ['@solana/connector'],
// @solana/connector bundles a web3.js v1 compat layer for legacy wallets.
// We never pass web3.js Transaction objects (we use @solana/kit / Uint8Array),
// so this code path is dead. Stub the module so webpack doesn't error at build
// time when it can't resolve the optional dynamic import('@solana/web3.js').
webpack: (webpackConfig) => {
webpackConfig.resolve.fallback = {
...webpackConfig.resolve.fallback,
'@solana/web3.js': false,
}
return webpackConfig
},
}
export default config

View File

@@ -12,6 +12,7 @@
"@descro/sdk": "file:../../descro/sdk",
"@solana/connector": "^0.2.4",
"@solana/kit": "^6.10.0",
"@solana/web3.js": "^1.0.0",
"@solisting/sdk": "workspace:*",
"@tanstack/react-query": "^5.101.1",
"class-variance-authority": "^0.7.1",