Skip to content

fix(web): replace non-existent package versions to unblock Vercel deploys#2

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-next-version-dependencies
Draft

fix(web): replace non-existent package versions to unblock Vercel deploys#2
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-next-version-dependencies

Conversation

Copilot AI commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

web/package.json referenced versions that don't exist on npm (next@^16.1.6, eslint-config-next@^16.2.1, typescript@^5.9.3, vitest@^4.0.18), causing npm install to fail immediately on Vercel.

Version downgrades

Package Before After
next ^16.1.6 ^15.3.0
eslint-config-next ^16.2.1 ^15.3.0
typescript ^5.9.3 ^5.7.3
vitest ^4.0.18 ^2.1.8
@vitest/coverage-v8 ^4.0.18 ^2.1.8

@next/swc-darwin-arm64optionalDependencies

This package is a macOS ARM64-only binary. Keeping it in dependencies hard-fails npm install on Linux (including Vercel). Moved to optionalDependencies at ^15.3.0 — installs on macOS ARM64, silently skipped everywhere else.

web/package-lock.json regenerated with all resolved stable versions.

Original prompt

Problem

The Vercel deployment for supermolt-arena is failing because web/package.json references non-existent package versions. Next.js 16 has not been publicly released — the latest stable version is 15.x. This causes npm install to fail on Vercel, breaking the entire build pipeline.

Required Changes

File: web/package.json

Make the following version changes:

In dependencies:

  • "next": "^16.1.6""next": "^15.3.0"
  • "@next/swc-darwin-arm64": "^16.1.6""^15.3.0"

In devDependencies:

  • "eslint-config-next": "^16.2.1""^15.3.0"
  • "typescript": "^5.9.3""^5.7.3"
  • "vitest": "^4.0.18""^2.1.8"
  • "@vitest/coverage-v8": "^4.0.18""^2.1.8"

After updating package.json, run npm install inside the web/ directory to regenerate web/package-lock.json with the resolved stable versions.

Why

  • next@^16.1.6 does not exist on npm → Vercel npm install fails immediately
  • eslint-config-next@^16.2.1 does not exist on npm → same failure
  • typescript@^5.9.3 and vitest@^4.0.18 are pre-release/non-existent versions → potential resolution failures
  • Downgrading to next@^15.3.0 (latest stable) and stable devDeps will unblock Vercel deployments without any code changes

Important Notes

  • Do NOT modify any application source code — only web/package.json and the resulting web/package-lock.json
  • Do NOT hardcode NEXT_PUBLIC_PRIVY_APP_ID anywhere — it must stay as an env variable set in Vercel Dashboard
  • The web/vercel.json file does not need changes
  • Base branch: main

The following is the prior conversation context from the user's chat exploration (may be truncated):

Assistant: Ето го пълният комплексен анализ на проекта Biliion-Dollar-Company/supermolt-mono:


🧠 Комплексен Анализ на supermolt-mono (Trench Terminal)

📋 Обзор на Проекта

Trench Terminal е автономна AI платформа за търговия с крипто токени на блокчейн мрежи (Solana, BSC, Base). Проектът е изграден за Colosseum Frontier Hackathon (Април–Май 2026 г.) и представлява затворен loop: Detect → Deploy → Trade → Learn.

Репо: https://github.com/Biliion-Dollar-Company/supermolt-mono
Live: https://trench-terminal-omega.vercel.app
Лиценз: MIT | Основен език: TypeScript


🏗️ Архитектура — Модули

Проектът е монорепо с 6 основни пакета:

Модул Технология Роля
backend/ Hono + Bun + Prisma (Node) API сървър, бизнес логика, AI агенти
web/ Next.js 16 + React 19 + PixiJS 8 War Room фронтенд (Vercel)
mobile/ Expo (React Native) + NativeWind iOS/Android мобилно приложение
contracts/ Solidity + Foundry EVM смарт контракти (Base/BSC)
telegram-bot/ Telegraf + TypeScript Сигнали и абонаменти в Telegram
shared/ TypeScript Споделени типове

🔍 Детален Анализ по Модул

1. 🖥️ Backend (backend/src/)

Технологичен стек: Hono (ultra-fast web framework), Bun runtime, Prisma ORM, PostgreSQL, Socket.IO, Redis

Услуги (Services) — ~50+ файла

Ключовите услуги включват:

Услуга Описание
agent-signal-reactor.ts Реагира на сигнали от социални медии → търговски решения
agent-trading-loop.ts Основен цикъл на автономна търговия
agent-trade-reactor.ts Изпълнение на сделки при определени условия
trading-executor.ts Изпълнение на реални транзакции (Jupiter/Pump.fun)
trigger-engine.ts Двигател за автоматични buy triggers
trending-token-sync.ts Синхронизира trending токени (Birdeye, DexScreener)
treasury-manager.service.ts Управление на treasury pool + разпределение на USDC
erc8004-identity/reputation/validation.service.ts On-chain идентичност на агентите
prediction-coordinator.ts Координация на Polymarket/Kalshi предсказания
clanker-monitor.ts / fourmeme-monitor.ts / bsc-monitor.ts Мониторинг на нови токени на различни платформи
helius-websocket.ts Real-time Solana blockchain events (Helius)
websocket-events.ts Socket.IO стрийминг към фронтенда
llm.service.ts Интеграция с Groq/OpenAI
sortino.service.ts Изчисляване на Sortino ratio за агентите

API Routes — ~40+ файла

Route Описание
messaging.ts Агентски разговори и чат (25KB!)
internal.ts Вътрешни admin операции (39KB!)
webhooks.ts Helius webhooks за on-chain events (34KB!)
social-feed.routes.ts Социален фийд с постове/лайкове
prediction.routes.ts Polymarket прогнози
voting.ts Агентско гласуване по токени
copy-trade.ts Copy-trading функционалност
erc8004.routes.ts Agent identity registry
trading.routes.ts Trading API
ponzinomics.ts Gamification (Scanner epochs, rankings)

Database Schema (Prisma)

Богата схема с 20+ модела:

  • TradingAgent — AI агент с XP/нива, Pump.fun токенизация, ERC-8004
  • PaperTrade / AgentTrade — Симулирани и реални сделки
  • `Scan...

This pull request was created from Copilot chat.

@vercel

vercel Bot commented Apr 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
supermolt-arena Error Error Apr 8, 2026 1:37pm

…, regenerate package-lock.json

Agent-Logs-Url: https://github.com/Biliion-Dollar-Company/supermolt-mono/sessions/1b5ca4df-a41c-4b19-a270-02ef36d85703

Co-authored-by: derbibr-art <248118992+derbibr-art@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix package versions in web/package.json for deployment fix(web): replace non-existent package versions to unblock Vercel deploys Apr 8, 2026
Copilot AI requested a review from derbibr-art April 8, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants