Deployment Failed #77173
Replies: 1 comment
-
|
The error message you’re seeing indicates that the Next.js build is failing because there’s an issue with missing template variables (VAR_ORIGINAL_PATHNAME) in several files. This could be caused by an issue with dynamic imports, routing, or how the templates are being processed during the build. Here are a few steps to help troubleshoot and resolve the issue:
npm install next@latest
npm install react@latest react-dom@latest
npm run clean |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting the failed deployment error when i try to deploy my app, the log is below:
[23:30:47.495] Retrieving list of deployment files...
[23:30:47.818] Downloading 159 deployment files...
[23:30:50.017] Restored build cache from previous deployment (Cr7zaTgt6BhFf2AV1ELney4RsTCw)
[23:30:50.096] Running build in Washington, D.C., USA (East) – iad1
[23:30:50.318] Running "vercel build"
[23:30:50.690] Vercel CLI 41.3.2
[23:30:51.024] Running "install" command:
bun install...[23:30:51.070] bun install v1.2.5 (013fdddc)
[23:30:51.147] Resolving dependencies
[23:30:54.487] Resolved, downloaded and extracted [1636]
[23:30:54.517] warn: incorrect peer dependency "[email protected]"
[23:30:54.518]
[23:30:54.518] warn: incorrect peer dependency "[email protected]"
[23:30:54.518]
[23:30:54.518] warn: incorrect peer dependency "[email protected]"
[23:30:54.518]
[23:30:54.518] warn: incorrect peer dependency "[email protected]"
[23:30:54.518]
[23:30:54.518] warn: incorrect peer dependency "[email protected]"
[23:30:54.518]
[23:30:54.518] warn: incorrect peer dependency "[email protected]"
[23:30:59.641] Saved lockfile
[23:30:59.642]
[23:30:59.642] + @types/[email protected]
[23:30:59.642] + @types/[email protected]
[23:30:59.642] + @types/[email protected]
[23:30:59.642] + [email protected]
[23:30:59.642] + @remix-run/[email protected]
[23:30:59.642] + @supabase/[email protected]
[23:30:59.642] + @sveltejs/[email protected]
[23:30:59.642] + @testing-library/[email protected]
[23:30:59.642] + @testing-library/[email protected]
[23:30:59.642] + @testing-library/[email protected]
[23:30:59.643] + @vercel/[email protected]
[23:30:59.643] + @vercel/[email protected]
[23:30:59.643] + [email protected]
[23:30:59.643] + [email protected] (v15.2.2 available)
[23:30:59.643] + [email protected]
[23:30:59.643] + [email protected]
[23:30:59.643] + [email protected]
[23:30:59.643] + [email protected]
[23:30:59.643] + [email protected]
[23:30:59.643] + [email protected]
[23:30:59.643]
[23:30:59.643] 133 packages installed [8.59s]
[23:30:59.643]
[23:30:59.643] Blocked 1 postinstall. Run
bun pm untrustedfor details.[23:30:59.685] Detected Next.js version: 15.1.0
[23:30:59.685] Running "bun run build"
[23:30:59.695] $ next build
[23:31:00.448] ▲ Next.js 15.1.0
[23:31:00.449] - Experiments (use with caution):
[23:31:00.449] · webpackBuildWorker
[23:31:00.449] · parallelServerCompiles
[23:31:00.449] · parallelServerBuildTraces
[23:31:00.449]
[23:31:00.526] Creating an optimized production build ...
[23:31:02.865] Failed to compile.
[23:31:02.865]
[23:31:02.865] app/not-found.tsx
[23:31:02.865] Invariant: Expected to replace all template variables, missing VAR_ORIGINAL_PATHNAME in template
[23:31:02.865]
[23:31:02.865] app/admin/settings/page.tsx
[23:31:02.865] Invariant: Expected to replace all template variables, missing VAR_ORIGINAL_PATHNAME in template
[23:31:02.866]
[23:31:02.866] app/admin/users/page.tsx
[23:31:02.866] Invariant: Expected to replace all template variables, missing VAR_ORIGINAL_PATHNAME in template
[23:31:02.866]
[23:31:02.866] app/api/api-keys/route.ts
[23:31:02.866] Invariant: Expected to replace all template variables, missing VAR_ORIGINAL_PATHNAME in template
[23:31:02.866]
[23:31:02.867] app/api/documents/process/route.ts
[23:31:02.867] Invariant: Expected to replace all template variables, missing VAR_ORIGINAL_PATHNAME in template
[23:31:02.868]
[23:31:02.877]
[23:31:02.878] > Build failed because of webpack errors
[23:31:02.890] error: script "build" exited with code 1
[23:31:02.900] Error: Command "bun run build" exited with 1
[23:31:03.532]
Beta Was this translation helpful? Give feedback.
All reactions