From 009183c54518dfa5385f00ea4208131d3f8c3b73 Mon Sep 17 00:00:00 2001 From: thesn10 <38666407+thesn10@users.noreply.github.com> Date: Thu, 25 Jun 2026 12:08:09 +0200 Subject: [PATCH] fix: add @solana/web3.js dep; revert webpack fallback --- app/next.config.ts | 11 ----------- app/package.json | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/app/next.config.ts b/app/next.config.ts index 6097e95..a9885b6 100644 --- a/app/next.config.ts +++ b/app/next.config.ts @@ -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 diff --git a/app/package.json b/app/package.json index 3950c2f..0387a21 100644 --- a/app/package.json +++ b/app/package.json @@ -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",