Open
Conversation
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
Pubblica nella sandbox
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
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.
ok