Skip to content

fix: resolve strict TypeScript errors, fix build warnings, and update peer dependencies - #194

Closed
imrja8 wants to merge 2 commits into
Dokploy:mainfrom
imrja8:chore/update-deps-and-fix-types
Closed

imrja8 wants to merge 2 commits into
Dokploy:mainfrom
imrja8:chore/update-deps-and-fix-types

Conversation

@imrja8

@imrja8 imrja8 commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This PR addresses several underlying build issues and type conflicts to ensure that the repository runs a clean production build (next build) without any linting, TypeScript, or peer dependency errors.
Specifically, this updates outdated dependencies blocking npm install, aligns our route typing with the new Next.js 15 Promise-based API constraints, and runs the Biome formatter to guarantee codebase consistency.

Changes Included

  • Dependencies: Upgraded lucide-react and framer-motion to resolve ERESOLVE peer dependency conflicts with React 19.
  • Next.js 15 Routing: Updated all dynamic routing Props (such as [id], [slug], [tag]) to use the new Promise-based params and searchParams signatures.
  • Strict Types: Fixed multiple strict TypeScript (tsc --noEmit) violations across the /app and /components directories.
  • Lint & Formatting: Applied global biome formatting auto-fixes. Replaced legacy forEach iterations in async React server components with for...of loops. Ignored openapi.json from the Biome config to bypass file size limits.
  • Warnings Resolved: Added the missing metadataBase configuration in the /docs layout and updated the browserslist DB (caniuse-lite) to eliminate outstanding build warnings.

How to Test / Verification

  1. Run pnpm install (succeed without peer dependency overrides).
  2. Run pnpm run format-and-lint (should report 0 errors).
  3. Run pnpm run typecheck (should compile cleanly).
  4. Run pnpm run build (complete static generation and optimization with 0 warnings or errors).

@imrja8
imrja8 requested a review from Siumauricio as a code owner October 1, 2026 11:22
…-fix-types

# Conflicts:
#	apps/website/app/privacy/page.tsx
@narcisonunez

Copy link
Copy Markdown
Contributor

Just send your changes and we will handling updating all the files in a different PR. Thanks

@imrja8
imrja8 deleted the chore/update-deps-and-fix-types branch October 8, 2026 07:05
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