fix: add @solana/web3.js dep; revert webpack fallback
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user