Error: Command "vercel build" exited with 1

See original GitHub issue

I did not make any changes to the packages. I get the following error when I try to deploy the project.

[23:24:55.334] Cloning completed: 578.923ms
[23:24:55.668] Installing build runtime...
[23:25:02.803] Build runtime installed: 7.134s
[23:25:03.541] Looking up build cache...
[23:25:04.070] Build Cache not found
[23:25:04.406] Running "vercel build"
[23:25:04.862] Vercel CLI 24.1.1-canary.6 build (beta) — https://vercel.com/feedback
[23:25:04.966] ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
[23:25:04.966] │ WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings │
[23:25:04.966] └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
[23:25:05.215] yarn add v1.22.17
[23:25:05.226] warning package.json: No license field
[23:25:05.242] info No lockfile found.
[23:25:05.261] warning No license field
[23:25:05.262] [1/4] Resolving packages...
[23:25:06.307] [2/4] Fetching packages...
[23:25:06.990] [3/4] Linking dependencies...
[23:25:07.286] [4/4] Building fresh packages...
[23:25:07.292] success Saved lockfile.
[23:25:07.294] warning No license field
[23:25:07.299] success Saved 63 new dependencies.
[23:25:07.299] info Direct dependencies
[23:25:07.299] ├─ @nuxtjs/vercel-builder@0.22.1
[23:25:07.299] └─ @vercel/build-utils@2.15.1
[23:25:07.299] info All dependencies
[23:25:07.299] ├─ @nuxtjs/vercel-builder@0.22.1
[23:25:07.300] ├─ @nuxtjs/web-vitals@0.1.8
[23:25:07.300] ├─ @vercel/build-utils@2.15.1
[23:25:07.300] ├─ @vercel/node-bridge@2.1.0
[23:25:07.300] ├─ ansi-regex@5.0.1
[23:25:07.300] ├─ ansi-styles@4.3.0
[23:25:07.300] ├─ at-least-node@1.0.0
[23:25:07.300] ├─ balanced-match@1.0.2
[23:25:07.300] ├─ brace-expansion@1.1.11
[23:25:07.300] ├─ chalk@4.1.2
[23:25:07.300] ├─ cliui@7.0.4
[23:25:07.300] ├─ color-convert@2.0.1
[23:25:07.300] ├─ color-name@1.1.4
[23:25:07.300] ├─ concat-map@0.0.1
[23:25:07.300] ├─ consola@2.15.3
[23:25:07.300] ├─ cross-spawn@7.0.3
[23:25:07.300] ├─ defu@5.0.1
[23:25:07.301] ├─ destr@1.1.1
[23:25:07.301] ├─ emoji-regex@8.0.0
[23:25:07.301] ├─ escalade@3.1.1
[23:25:07.301] ├─ execa@5.1.1
[23:25:07.301] ├─ flat@5.0.2
[23:25:07.301] ├─ fs-extra@9.1.0
[23:25:07.301] ├─ fs.realpath@1.0.0
[23:25:07.301] ├─ get-caller-file@2.0.5
[23:25:07.301] ├─ get-stream@6.0.1
[23:25:07.301] ├─ glob@7.2.0
[23:25:07.301] ├─ graceful-fs@4.2.10
[23:25:07.301] ├─ has-flag@4.0.0
[23:25:07.301] ├─ human-signals@2.1.0
[23:25:07.301] ├─ inflight@1.0.6
[23:25:07.301] ├─ inherits@2.0.4
[23:25:07.301] ├─ is-fullwidth-code-point@3.0.0
[23:25:07.301] ├─ is-stream@2.0.1
[23:25:07.302] ├─ isexe@2.0.0
[23:25:07.302] ├─ jiti@1.13.0
[23:25:07.302] ├─ jsonfile@6.1.0
[23:25:07.302] ├─ lru-cache@6.0.0
[23:25:07.302] ├─ merge-stream@2.0.0
[23:25:07.302] ├─ mimic-fn@2.1.0
[23:25:07.302] ├─ minimatch@3.1.2
[23:25:07.302] ├─ npm-run-path@4.0.1
[23:25:07.302] ├─ onetime@5.1.2
[23:25:07.303] ├─ path-is-absolute@1.0.1
[23:25:07.303] ├─ path-key@3.1.1
[23:25:07.303] ├─ rc9@1.2.2
[23:25:07.303] ├─ replace-in-file@6.3.2
[23:25:07.303] ├─ require-directory@2.1.1
[23:25:07.303] ├─ resolve-from@5.0.0
[23:25:07.303] ├─ semver@7.3.5
[23:25:07.303] ├─ shebang-command@2.0.0
[23:25:07.303] ├─ shebang-regex@3.0.0
[23:25:07.303] ├─ signal-exit@3.0.7
[23:25:07.303] ├─ string-width@4.2.3
[23:25:07.303] ├─ strip-final-newline@2.0.0
[23:25:07.303] ├─ supports-color@7.2.0
[23:25:07.303] ├─ web-vitals@2.1.4
[23:25:07.304] ├─ which@2.0.2
[23:25:07.304] ├─ wrap-ansi@7.0.0
[23:25:07.304] ├─ y18n@5.0.8
[23:25:07.304] ├─ yallist@4.0.0
[23:25:07.304] ├─ yargs-parser@21.0.1
[23:25:07.304] └─ yargs@17.4.1
[23:25:07.305] Done in 2.10s.
[23:25:07.363] Error! Package subpath './package.json' is not defined by "exports" in /vercel/path0/.vercel/builders/node_modules/@nuxtjs/vercel-builder/package.json
[23:25:07.375] Error: Command "vercel build" exited with 1

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

3reactions
nicolaselielllcommented, Apr 29, 2022

Same error here

2reactions
nford88commented, Apr 28, 2022

I can confirm similar thing is happening to myself. Previously build was working perfectly. vercel --prod from current working head 3 weeks ago results in the same issue. This is a nuxt project if that makes a difference.

Logs

[22:26:03.807] Retrieving list of deployment files...
[22:26:05.738] Downloading 58 deployment files...
[22:26:07.911] Installing build runtime...
[22:26:16.150] Build runtime installed: 8.240s
[22:26:16.841] Looking up build cache...
[22:26:17.127] Build Cache not found
[22:26:17.502] Running "vercel build"
[22:26:17.959] Vercel CLI 24.1.1-canary.6 build (beta) — https://vercel.com/feedback
[22:26:18.058] ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
[22:26:18.059] │ WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings │
[22:26:18.059] └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
[22:26:18.307] yarn add v1.22.17
[22:26:18.318] warning package.json: No license field
[22:26:18.330] info No lockfile found.
[22:26:18.349] warning No license field
[22:26:18.350] [1/4] Resolving packages...
[22:26:19.784] [2/4] Fetching packages...
[22:26:20.801] [3/4] Linking dependencies...
[22:26:21.118] [4/4] Building fresh packages...
[22:26:21.125] success Saved lockfile.
[22:26:21.126] warning No license field
[22:26:21.131] success Saved 63 new dependencies.
[22:26:21.131] info Direct dependencies
[22:26:21.131] ├─ @nuxtjs/vercel-builder@0.22.1
[22:26:21.131] └─ @vercel/build-utils@2.15.1
[22:26:21.132] info All dependencies
[22:26:21.132] ├─ @nuxtjs/vercel-builder@0.22.1
[22:26:21.132] ├─ @nuxtjs/web-vitals@0.1.8
[22:26:21.132] ├─ @vercel/build-utils@2.15.1
[22:26:21.132] ├─ @vercel/node-bridge@2.1.0
[22:26:21.132] ├─ ansi-regex@5.0.1
[22:26:21.132] ├─ ansi-styles@4.3.0
[22:26:21.132] ├─ at-least-node@1.0.0
[22:26:21.132] ├─ balanced-match@1.0.2
[22:26:21.132] ├─ brace-expansion@1.1.11
[22:26:21.132] ├─ chalk@4.1.2
[22:26:21.132] ├─ cliui@7.0.4
[22:26:21.132] ├─ color-convert@2.0.1
[22:26:21.132] ├─ color-name@1.1.4
[22:26:21.132] ├─ concat-map@0.0.1
[22:26:21.132] ├─ consola@2.15.3
[22:26:21.133] ├─ cross-spawn@7.0.3
[22:26:21.133] ├─ defu@5.0.1
[22:26:21.133] ├─ destr@1.1.1
[22:26:21.133] ├─ emoji-regex@8.0.0
[22:26:21.133] ├─ escalade@3.1.1
[22:26:21.133] ├─ execa@5.1.1
[22:26:21.133] ├─ flat@5.0.2
[22:26:21.133] ├─ fs-extra@9.1.0
[22:26:21.133] ├─ fs.realpath@1.0.0
[22:26:21.133] ├─ get-caller-file@2.0.5
[22:26:21.133] ├─ get-stream@6.0.1
[22:26:21.133] ├─ glob@7.2.0
[22:26:21.133] ├─ graceful-fs@4.2.10
[22:26:21.133] ├─ has-flag@4.0.0
[22:26:21.133] ├─ human-signals@2.1.0
[22:26:21.133] ├─ inflight@1.0.6
[22:26:21.133] ├─ inherits@2.0.4
[22:26:21.133] ├─ is-fullwidth-code-point@3.0.0
[22:26:21.133] ├─ is-stream@2.0.1
[22:26:21.134] ├─ isexe@2.0.0
[22:26:21.134] ├─ jiti@1.13.0
[22:26:21.134] ├─ jsonfile@6.1.0
[22:26:21.134] ├─ lru-cache@6.0.0
[22:26:21.134] ├─ merge-stream@2.0.0
[22:26:21.134] ├─ mimic-fn@2.1.0
[22:26:21.134] ├─ minimatch@3.1.2
[22:26:21.134] ├─ npm-run-path@4.0.1
[22:26:21.134] ├─ onetime@5.1.2
[22:26:21.134] ├─ path-is-absolute@1.0.1
[22:26:21.134] ├─ path-key@3.1.1
[22:26:21.134] ├─ rc9@1.2.2
[22:26:21.134] ├─ replace-in-file@6.3.2
[22:26:21.134] ├─ require-directory@2.1.1
[22:26:21.134] ├─ resolve-from@5.0.0
[22:26:21.134] ├─ semver@7.3.5
[22:26:21.134] ├─ shebang-command@2.0.0
[22:26:21.134] ├─ shebang-regex@3.0.0
[22:26:21.134] ├─ signal-exit@3.0.7
[22:26:21.134] ├─ string-width@4.2.3
[22:26:21.134] ├─ strip-final-newline@2.0.0
[22:26:21.134] ├─ supports-color@7.2.0
[22:26:21.135] ├─ web-vitals@2.1.4
[22:26:21.135] ├─ which@2.0.2
[22:26:21.135] ├─ wrap-ansi@7.0.0
[22:26:21.135] ├─ y18n@5.0.8
[22:26:21.135] ├─ yallist@4.0.0
[22:26:21.135] ├─ yargs-parser@21.0.1
[22:26:21.135] └─ yargs@17.4.1
[22:26:21.137] Done in 2.83s.
[22:26:21.197] Error! Package subpath './package.json' is not defined by "exports" in /vercel/path1/.vercel/builders/node_modules/@nuxtjs/vercel-builder/package.json
[22:26:21.209] Error: Command "vercel build" exited with 1

vercel.json

{
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/vercel-builder",
      "config": {}
    }
  ]
}

Vercel CLI 24.0.0 (downgraded from 24.1.1 canary to see if it was making a difference)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vercel Deployment Error: Command "npm run build" exited ...
1. You need to make sure all the warnings in your terminal are cleared/rectified before you build it because builds will fail since...
Read more >
Errors – Vercel Docs
A list of errors provided by Vercel CLI or the REST API, with details on how they occur and how to resolve them....
Read more >
Error: Command "npm run build" exited with 1 - Get Help
I downgraded node to v.16.18.1 and was able to run frontity locally. But I still can't deploy to vercel. The error is the...
Read more >
Deploy Vercel Error 'Error: Command "yarn run build" exited ...
Deploy Vercel Error 'Error: Command "yarn run build" exited with 1'
Read more >
Command "npm run build" exited with 1-Reactjs - appsloveworld
Go to your project setting in vercel.com. Go to General. In the "Build & Development Settings", override the Build command and write CI=''...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found