Skip to content

chat#430

Open
cipollas wants to merge 18 commits intopi-apps:mainfrom
cipollas:main
Open

chat#430
cipollas wants to merge 18 commits intopi-apps:mainfrom
cipollas:main

Conversation

@cipollas
Copy link
Copy Markdown

@cipollas cipollas commented Apr 8, 2026

ok

v0 bot and others added 7 commits February 15, 2026 19:24
Create Supabase tables and Next.js API routes for auth, messages, ban, approve, complete
Use Node.js script with Supabase client to fix name conflicts.
Add vercel.json to set root directory for Next.js project.
…causing build failures due to missing dependencies like dotenv.

This commit fixes the issue reported at tsconfig.json:19

## Bug Explanation

The root `tsconfig.json` for the Next.js application uses the glob pattern `"include": ["**/*.ts", "**/*.tsx"]` which recursively includes all TypeScript files in the project directory. However, the `exclude` array only contained `"node_modules"`.

The repository contains three separate applications:
1. The root Next.js application (deployed to Vercel)
2. A separate Express backend in `backend/` with its own `package.json` and dependencies (including `dotenv`)
3. A separate Vite React frontend in `frontend/` with its own `package.json` and dependencies

When Next.js runs its build, it type-checks all files included in the tsconfig. Since `backend/src/environments.ts` imports `dotenv` but `dotenv` is not a dependency of the root Next.js project, the build fails with:
```
Type error: Cannot find module 'dotenv' or its corresponding type declarations.
```

This is a configuration issue where the root Next.js project's tsconfig inadvertently includes files from independent sub-projects that have different dependency graphs.

## Fix Explanation

The fix adds `"backend"` and `"frontend"` to the `exclude` array in `tsconfig.json`:
```json
"exclude": ["node_modules", "backend", "frontend"]
```

This ensures that the root Next.js project only type-checks its own TypeScript files and doesn't attempt to compile files from the separate backend and frontend applications. Each of those sub-projects has its own `tsconfig.json` for their respective builds.

After the fix:
- `pnpm exec tsc --noEmit` passes without errors
- `pnpm exec next build` completes successfully

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Co-authored-by: cipollas <diegogenerali2@gmail.com>
Update branding to App Pionieri and fix task button cooldowns
Copy link
Copy Markdown
Author

@cipollas cipollas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@cipollas cipollas marked this pull request as draft April 8, 2026 02:08
@cipollas cipollas marked this pull request as ready for review April 8, 2026 02:08
v0 bot and others added 11 commits April 8, 2026 12:17
Fix reference to non-existent donations table and update existing tables.
Rename Chat Pionieri to App Pionieri and enable database separation
Rename application to App Pionieri and enable database separation
Add comment to force deploy and resolve delayed page publication.
Rename application to App Pionieri and fix privacy page 404
Correct table names and update APIs for multi-app separation.
Rename application to App Pionieri and fix navigation errors
Create 'next.config.mjs' with 'allowedDevOrigins' and image settings.
Rename application to App Pionieri and optimize performance
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.

1 participant