From 5cc3231952d1b4b5641039f3a44c013492adbae6 Mon Sep 17 00:00:00 2001 From: thesn10 <38666407+thesn10@users.noreply.github.com> Date: Thu, 25 Jun 2026 18:28:46 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20drop=20turbopack,=20add=20webpack=20exte?= =?UTF-8?q?nsionAlias=20for=20SDK=20.js=E2=86=92.ts=20resolution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/next.config.ts | 9 +++++++++ app/package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/next.config.ts b/app/next.config.ts index fd3e89b..8923e69 100644 --- a/app/next.config.ts +++ b/app/next.config.ts @@ -3,6 +3,15 @@ import type { NextConfig } from 'next' const config: NextConfig = { reactStrictMode: true, transpilePackages: ['@solana/connector', '@solisting/sdk', '@descro/sdk'], + webpack(webpackConfig) { + // Workspace SDK packages use .js extensions on TypeScript imports (ESM convention) + // but have no compiled output — webpack must resolve .js → .ts + webpackConfig.resolve.extensionAlias = { + '.js': ['.ts', '.tsx', '.js'], + '.mjs': ['.mts', '.mjs'], + } + return webpackConfig + }, } export default config diff --git a/app/package.json b/app/package.json index 0387a21..56513e7 100644 --- a/app/package.json +++ b/app/package.json @@ -2,7 +2,7 @@ "name": "solisting-app", "private": true, "scripts": { - "dev": "next dev --turbopack", + "dev": "next dev", "build": "next build", "start": "next start", "typecheck": "tsc --noEmit"