You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix module resolution errors for @v1 packages in Vercel deployment
Issue Description
Build is failing during Vercel deployment for the backend application (/apps/app). The frontend (/apps/web) deploys successfully.
Project Structure
Single git repository with two deployment destinations:
/apps/web - Frontend (port 3001)
/apps/app - Backend (port 3000)
Using default build and development settings on Vercel
No active configuration overrides
Deployment Configuration
Backend (/apps/app) vercel.json:
?
Critical Information
Build Process:
Uses pnpm for package management
Requires navigation to root directory for installation
Returns to app directory for build
Uses Next.js framework settings
Outputs to .next directory
Package Resolution:
Monorepo structure with shared packages in /packages
Workspace dependencies managed by pnpm
Module imports using @v1 namespace
Error Details
Backend build fails with multiple module resolution errors:
In ./src/app/[locale]/layout.tsx:
Cannot resolve @v1/ui/globals.css
Cannot resolve @v1/ui/cn
In ./src/components/google-signin.tsx:
Cannot resolve @v1/supabase/client
Root Cause
The @v1 packages are not properly configured in the monorepo setup for Vercel deployment. While these packages work in local development, they fail during Vercel's build process.
Environment Details
Deployment Platform: Vercel
Package Manager: pnpm
Framework: Next.js
Development Ports:
Frontend: 3001
Backend: 3000
Steps to Reproduce
Push changes to repository
Vercel automatically triggers deployment
Frontend (/apps/web) builds successfully
Backend (/apps/app) build fails with module resolution errors
Fix module resolution errors for @v1 packages in Vercel deployment
Issue Description
Build is failing during Vercel deployment for the backend application (
/apps/app
). The frontend (/apps/web
) deploys successfully.Project Structure
/apps/web
- Frontend (port 3001)/apps/app
- Backend (port 3000)Deployment Configuration
Backend (
/apps/app
) vercel.json:Critical Information
Build Process:
.next
directoryPackage Resolution:
/packages
@v1
namespaceError Details
Backend build fails with multiple module resolution errors:
In
./src/app/[locale]/layout.tsx
:@v1/ui/globals.css
@v1/ui/cn
In
./src/components/google-signin.tsx
:@v1/supabase/client
Root Cause
The @v1 packages are not properly configured in the monorepo setup for Vercel deployment. While these packages work in local development, they fail during Vercel's build process.
Environment Details
Steps to Reproduce
/apps/web
) builds successfully/apps/app
) build fails with module resolution errorsProposed Solution
Impact
Priority
High - blocking backend deployment pipeline
Additional Notes
cd ../..
) which might affect module resolutionLabels
The text was updated successfully, but these errors were encountered: