Fix CI/build failures: Next.js 16 lint, Node 24, Prisma schema drift, wagmi v2#24
Draft
Fix CI/build failures: Next.js 16 lint, Node 24, Prisma schema drift, wagmi v2#24
Conversation
Co-authored-by: SMSDAO <144380926+SMSDAO@users.noreply.github.com>
…Prisma schema alignment Co-authored-by: SMSDAO <144380926+SMSDAO@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Transform LIRA into a fully operational production platform
Fix CI/build failures: Next.js 16 lint, Node 24, Prisma schema drift, wagmi v2
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI was failing on every run due to a cascade of broken tooling and schema drift introduced across prior phases. Four distinct root causes needed fixing simultaneously.
CI & Tooling
next lintremoved in Next.js 16 — replaced witheslint src --ext .ts,.tsx; addedtypecheckscript (tsc --noEmit)package.jsonrequires>=24; updatedci.yml@swc/core— required peer of@swc/jestbut absent fromdevDependencies; tests were silently skippingtsconfig.json— excludedprisma/andsrc/__tests__/from app compilation to avoid Jest-global and seed-script type bleedPrisma Schema Drift
Multiple API routes and the seed script were written against a schema that never existed in the repo:
Profile.handleUser.handleProfile.avatarProfile.avatarUrlProfile.socialLinks.{twitter,discord,website}Profile.twitter,Profile.discord,Profile.websiteTokenStat.tokenIdTokenStat.tokenAddressTokenStat.totalVolumeTokenStat.volumeTotalUserTokenRole.tokenId/valueUsdtokenAddress/ (removed)Token._count.roles/include.rolesuserRolesAlso added
@uniquetoTokenStat.tokenAddress(required forfindUnique) and restored accidentally-droppedtransactionCountfield.Fixed in:
prisma/seed.ts,api/social/profile.ts,api/social/feed.ts,api/tokens/by-project.ts,api/tokens/by-user.ts,api/admin/analytics.ts,api/admin/registry.ts.wagmi v2 Compatibility
useSignerwas removed in wagmi v2.ContractControllernow usesuseWalletClientwith an inline ethers.js adapter:Other Type Fixes
contracts.ts: fixed ABI index type (CONTRACT_ABIShas noadminWalletkey), added(error as Error).messagecasts, addedawaittogetSignerNeoButton.tsx: switched interface toOmit<HTMLMotionProps<'button'>, 'children'>to resolve framer-motion spread incompatibility@typescript-eslint/no-unused-varserrors inSecuritySection.tsxandu/[handle].tsxRecord<string, any>reduce accumulators inbilling.tsandanalytics.tswith explicit shaped typesWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.web3modal.org/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/lira/lira/node_modules/next/dist/compiled/jest-worker/processChild.js(dns block)/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/lira/lira/node_modules/next/dist/compiled/jest-worker/processChild.js -m conntrack --ctstate INVALID,NEW -j DROP pull.rebase(dns block)checkpoint.prisma.io/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/lira/lira/node_modules/prisma/build/child {"product":"prisma","version":"5.22.0","cli_install_type":"local","information":"","local_timestamp":"2026-03-06T23:01:17Z","project_hash":"25074a1a","cli_path":"/home/REDACTED/work/lira/lira/node_modules/prisma/build/index.js","cli_path_hash":"1dd8be72","e(dns block)/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/lira/lira/node_modules/prisma/build/child {"product":"prisma","version":"5.22.0","cli_install_type":"local","information":"","local_timestamp":"2026-03-06T23:08:15Z","project_hash":"25074a1a","cli_path":"/home/REDACTED/work/lira/lira/node_modules/.bin/prisma","cli_path_hash":"e34a6add","endpoint":"(dns block)/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/lira/lira/node_modules/prisma/build/child {"product":"prisma","version":"5.22.0","cli_install_type":"local","information":"","local_timestamp":"2026-03-06T23:14:36Z","project_hash":"25074a1a","cli_path":"/home/REDACTED/work/lira/lira/node_modules/.bin/prisma","cli_path_hash":"e34a6add","endpoint":" k/lira/lira lint��(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
GOD-SWARM OMNISWARM PRODUCTION COMPLETION
TARGET: SMSDAO/lira - Complete Production Platform Transformation
MISSION: Transform LIRA into fully operational production platform with complete UI/UX, Database, Admin, Dev Console, and User layers with mobile optimization.
CRITICAL FOUNDATION ANALYSIS
Repository contains advanced Web3 foundation:
ABSOLUTE RULES ENFORCED:
OMNISWARM PRODUCTION ARCHITECTURE
Transform to Complete Production Monorepo:
1. USER APPLICATION (/apps/web) - MOBILE OPTIMIZED
Complete Next.js 16 User Interface:
Mobile Optimization Features:
2. ADMIN CONTROL PANEL (/apps/admin) - COMPLETE GOVERNANCE
Comprehensive Admin Dashboard: