Closed CodeWritingCow closed 2 months ago
Below is a snippet of the error log shared by Brandon:
Creating an optimized production build ...
Compiled successfully
Linting and checking validity of types ...
Failed to compile.
./src/app/find-properties/[[...opa_id]]/page.tsx
11:10 Error: 'FilterProvider' is defined but never used. @typescript-eslint/no-unused-vars
/src/components/ContentCard.tsx
1:14 Error: 'ReactNode' is defined but never used. @typescript-eslint/no-unused-vars
37:3 Error: 'description' is defined but never used. @typescript-eslint/no-unused-vars
38:3 Error: 'linkurl' is defined but never used. @typescript-eslint/no-unused-vars
It turns out there were two causes:
mapbox-gl
NPM library being upgraded from v3.2.0 to v3.5.2, which introduced breaking changesBoth problems have been resolved.
Describe the bug PRs are failing to deploy to Vercel's preview and production environments. The last successful deployment to production was PR #807 on July 19, 2024, at 11:11 a.m.
To Reproduce Steps to reproduce the behavior:
staging
branchstaging
tomain
branchExpected behavior Vercel should successfully deploy PRs to production.
Screenshots @brandonfcohen1 shared a log showing a Vercel build failure due to TypeScript errors. See comments section.
Additional context This problem began on July 19, 2024, after new GitHub Actions were added to our repo's Workflow. Some possible causes suggested by Nissim and Brandon:
Release Drafter
Workflow for drafting release notes (this workflow is now temporarily disabled)PR Checks
Workflow for linting and formatting frontend PRs; it was updated this week and might be causing Vercel builds to fail if ESLint finds any TypeScript errors