fix: drop turbopack, add webpack extensionAlias for SDK .js→.ts resolution

This commit is contained in:
thesn10
2026-06-25 18:28:46 +02:00
parent f121abde14
commit 5cc3231952
2 changed files with 10 additions and 1 deletions

View File

@@ -3,6 +3,15 @@ import type { NextConfig } from 'next'
const config: NextConfig = { const config: NextConfig = {
reactStrictMode: true, reactStrictMode: true,
transpilePackages: ['@solana/connector', '@solisting/sdk', '@descro/sdk'], 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 export default config

View File

@@ -2,7 +2,7 @@
"name": "solisting-app", "name": "solisting-app",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"