chore: remove redundant @types/react overrides that conflict with devDependencies#296
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR resolves a Dependabot conflict by removing redundant @types/react and @types/react-dom entries from the overrides section of package.json. The issue occurred because these packages were pinned in both devDependencies (as direct dependencies) and overrides (for transitive dependencies), causing Dependabot to fail with dependency_file_not_resolvable errors when attempting to update versions.
Changes:
- Removed
@types/react(version 19.2.7) and@types/react-dom(version 19.2.3) from theoverridessection - Kept
@auth/coreoverride, which is a legitimate transitive dependency override
|
@copilot run npm install and setup nvironment from .env.example, run npm run build and start the dev server check for any errors. if any errors occurs then fix it |
Done. Here are the results after running
There are 3 pre-existing TypeScript errors in The Prisma "column does not exist" warnings during static page generation are expected in this environment since no real database is connected (dummy |
Dependabot was failing with
dependency_file_not_resolvablebecause@types/reactand@types/react-domwere pinned in bothdevDependenciesandoverrides. When Dependabot bumped the direct dependency version, the stale override created an irreconcilable conflict.Change
Removed
@types/reactand@types/react-domfrom theoverridessection:"overrides": { "next-auth": { "next": "^16.0.7" }, - "@auth/core": "^0.41.1", - "@types/react": "19.2.7", - "@types/react-dom": "19.2.3" + "@auth/core": "^0.41.1" }overridesis for forcing versions on transitive dependencies. These packages are already explicitdevDependencies, so the overrides were redundant and actively blocking automated updates.Original prompt
This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.