Vercel Build, Module not found: Can't resolve path/to/Component
Builds fine locally...
[21:35:38.579] Running build in Washington, D.C., USA (East) – iad1
[21:35:38.636] Cloning github.com/niebag/sales-portal-next (Branch: staging, Commit: 9324ee0)
[21:35:39.125] Cloning completed: 488.975ms
[21:35:44.352] Restored build cache
[21:35:44.396] Running "vercel build"
[21:35:45.065] Vercel CLI 29.3.6
[21:35:45.489] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8...
[21:35:45.516] Installing dependencies...
[21:35:46.341] Lockfile is up to date, resolution step is skipped
[21:35:46.434] Progress: resolved 1, reused 0, downloaded 0, added 0
[21:35:46.595] Packages: +28
[21:35:46.595] ++++++++++++++++++++++++++++
[21:35:47.468] Progress: resolved 28, reused 0, downloaded 28, added 28, done
[21:35:48.104]
[21:35:48.104] dependencies:
[21:35:48.104] + @radix-ui/react-dialog 1.0.4
[21:35:48.105] + framer-motion 10.12.16
[21:35:48.105]
[21:35:48.111]
[21:35:48.111] > [email protected] prepare /vercel/path0
[21:35:48.112] > husky install
[21:35:48.112]
[21:35:48.194] husky - Git hooks installed
[21:35:48.202] Done in 2.6s
[21:35:48.225] Detected Next.js version: 13.4.3
[21:35:48.240] Running "pnpm run build"
[21:35:48.916]
[21:35:48.916] > [email protected] build /vercel/path0
[21:35:48.916] > next build
[21:35:48.916]
[21:35:49.602] - info Creating an optimized production build...
[21:36:10.454] <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (659kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
[21:36:10.706] Failed to compile.
[21:36:10.706]
[21:36:10.707] ./src/app/(auth)/login/page.tsx
[21:36:10.707] Module not found: Can't resolve '@/app/__components__/ui/Button'
[21:36:10.707]
[21:36:10.707] https://nextjs.org/docs/messages/module-not-found
[21:36:10.707]
[21:36:10.707] ./src/app/(auth)/login/page.tsx
[21:36:10.707] Module not found: Can't resolve '@/app/__components__/ui/form/Input'
[21:36:10.707]
[21:36:10.707] https://nextjs.org/docs/messages/module-not-found
[21:36:10.707]
[21:36:10.707] ./src/app/(auth)/login/page.tsx
[21:36:10.708] Module not found: Can't resolve '@/app/__components__/ui/form/Label'
[21:36:10.708]
[21:36:10.708] https://nextjs.org/docs/messages/module-not-found
[21:36:10.708]
[21:36:10.708] ./src/app/(auth)/logout/page.tsx
[21:36:10.708] Module not found: Can't resolve '@/app/__components__/ui/Button'
[21:36:10.708]
[21:36:10.708] https://nextjs.org/docs/messages/module-not-found
[21:36:10.709]
[21:36:10.709] ./src/app/__components__/SidebarMobile.tsx
[21:36:10.709] Module not found: Can't resolve './ui/Button'
[21:36:10.709]
[21:36:10.709] https://nextjs.org/docs/messages/module-not-found
[21:36:10.710]
[21:36:10.711]
[21:36:10.711] > Build failed because of webpack errors
[21:36:10.749] ELIFECYCLE Command failed with exit code 1.
[21:36:10.776] Error: Command "pnpm run build" exited with 1
[21:36:11.073] BUILD_UTILS_SPAWN_1: Command "pnpm run build" exited with 1
[21:35:38.579] Running build in Washington, D.C., USA (East) – iad1
[21:35:38.636] Cloning github.com/niebag/sales-portal-next (Branch: staging, Commit: 9324ee0)
[21:35:39.125] Cloning completed: 488.975ms
[21:35:44.352] Restored build cache
[21:35:44.396] Running "vercel build"
[21:35:45.065] Vercel CLI 29.3.6
[21:35:45.489] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8...
[21:35:45.516] Installing dependencies...
[21:35:46.341] Lockfile is up to date, resolution step is skipped
[21:35:46.434] Progress: resolved 1, reused 0, downloaded 0, added 0
[21:35:46.595] Packages: +28
[21:35:46.595] ++++++++++++++++++++++++++++
[21:35:47.468] Progress: resolved 28, reused 0, downloaded 28, added 28, done
[21:35:48.104]
[21:35:48.104] dependencies:
[21:35:48.104] + @radix-ui/react-dialog 1.0.4
[21:35:48.105] + framer-motion 10.12.16
[21:35:48.105]
[21:35:48.111]
[21:35:48.111] > [email protected] prepare /vercel/path0
[21:35:48.112] > husky install
[21:35:48.112]
[21:35:48.194] husky - Git hooks installed
[21:35:48.202] Done in 2.6s
[21:35:48.225] Detected Next.js version: 13.4.3
[21:35:48.240] Running "pnpm run build"
[21:35:48.916]
[21:35:48.916] > [email protected] build /vercel/path0
[21:35:48.916] > next build
[21:35:48.916]
[21:35:49.602] - info Creating an optimized production build...
[21:36:10.454] <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (659kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
[21:36:10.706] Failed to compile.
[21:36:10.706]
[21:36:10.707] ./src/app/(auth)/login/page.tsx
[21:36:10.707] Module not found: Can't resolve '@/app/__components__/ui/Button'
[21:36:10.707]
[21:36:10.707] https://nextjs.org/docs/messages/module-not-found
[21:36:10.707]
[21:36:10.707] ./src/app/(auth)/login/page.tsx
[21:36:10.707] Module not found: Can't resolve '@/app/__components__/ui/form/Input'
[21:36:10.707]
[21:36:10.707] https://nextjs.org/docs/messages/module-not-found
[21:36:10.707]
[21:36:10.707] ./src/app/(auth)/login/page.tsx
[21:36:10.708] Module not found: Can't resolve '@/app/__components__/ui/form/Label'
[21:36:10.708]
[21:36:10.708] https://nextjs.org/docs/messages/module-not-found
[21:36:10.708]
[21:36:10.708] ./src/app/(auth)/logout/page.tsx
[21:36:10.708] Module not found: Can't resolve '@/app/__components__/ui/Button'
[21:36:10.708]
[21:36:10.708] https://nextjs.org/docs/messages/module-not-found
[21:36:10.709]
[21:36:10.709] ./src/app/__components__/SidebarMobile.tsx
[21:36:10.709] Module not found: Can't resolve './ui/Button'
[21:36:10.709]
[21:36:10.709] https://nextjs.org/docs/messages/module-not-found
[21:36:10.710]
[21:36:10.711]
[21:36:10.711] > Build failed because of webpack errors
[21:36:10.749] ELIFECYCLE Command failed with exit code 1.
[21:36:10.776] Error: Command "pnpm run build" exited with 1
[21:36:11.073] BUILD_UTILS_SPAWN_1: Command "pnpm run build" exited with 1
0 Replies