rubynor / bigfive-web

Website for taking personality tests
https://bigfive-test.com
MIT License
372 stars 146 forks source link

Cannot deploy on vercel #99

Closed vzrenggamani closed 2 years ago

vzrenggamani commented 2 years ago

Description Just forked the repository and following the guideline to update the vercel.json and nuxt.config.js and added mongoDB Secrets to vercel account, but deployments are always failed.

Steps to Reproduce

  1. Fork it and edit the vercel.json and nuxt.config.js for the baseURL, scope, alias, and API URL with prefered domain
  2. Create free cluster mongodb atlas, make 0.0.0.0 allowed on ip address list. copy the db auth
  3. Make new porject on vercel & add the db auth secrets like on the project readme
  4. run the deployment and the builds are failing in the same spot for over and over

Vercel build Logs

[23:17:30.903] Cloning github.com/vzrenggamani/bigfive-web (Branch: master, Commit: 6250539)
[23:17:31.381] Cloning completed: 477.591ms
[23:17:32.288] Looking up build cache...
[23:17:32.546] Build Cache not found
[23:17:32.769] Running "vercel build"
[23:17:33.276] Vercel CLI 25.1.1-canary.3 build (beta) — https://vercel.com/feedback
[23:17:33.386] 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:17:34.290] yarn add v1.22.17
[23:17:34.312] info No lockfile found.
[23:17:34.333] [1/4] Resolving packages...
[23:17:35.475] [2/4] Fetching packages...
[23:17:36.358] [3/4] Linking dependencies...
[23:17:36.649] [4/4] Building fresh packages...
[23:17:36.655] success Saved lockfile.
[23:17:36.662] success Saved 63 new dependencies.
[23:17:36.662] info Direct dependencies
[23:17:36.662] ├─ @nuxtjs/vercel-builder@0.22.1
[23:17:36.662] └─ @vercel/build-utils@4.1.0
[23:17:36.662] info All dependencies
[23:17:36.663] ├─ @nuxtjs/vercel-builder@0.22.1
[23:17:36.663] ├─ @nuxtjs/web-vitals@0.1.8
[23:17:36.663] ├─ @vercel/build-utils@4.1.0
[23:17:36.663] ├─ @vercel/node-bridge@2.1.0
[23:17:36.663] ├─ ansi-regex@5.0.1
[23:17:36.663] ├─ ansi-styles@4.3.0
[23:17:36.663] ├─ at-least-node@1.0.0
[23:17:36.663] ├─ balanced-match@1.0.2
[23:17:36.663] ├─ brace-expansion@1.1.11
[23:17:36.663] ├─ chalk@4.1.2
[23:17:36.663] ├─ cliui@7.0.4
[23:17:36.663] ├─ color-convert@2.0.1
[23:17:36.664] ├─ color-name@1.1.4
[23:17:36.664] ├─ concat-map@0.0.1
[23:17:36.664] ├─ consola@2.15.3
[23:17:36.664] ├─ cross-spawn@7.0.3
[23:17:36.664] ├─ defu@5.0.1
[23:17:36.664] ├─ destr@1.1.1
[23:17:36.664] ├─ emoji-regex@8.0.0
[23:17:36.664] ├─ escalade@3.1.1
[23:17:36.664] ├─ execa@5.1.1
[23:17:36.664] ├─ flat@5.0.2
[23:17:36.664] ├─ fs-extra@9.1.0
[23:17:36.664] ├─ fs.realpath@1.0.0
[23:17:36.664] ├─ get-caller-file@2.0.5
[23:17:36.664] ├─ get-stream@6.0.1
[23:17:36.664] ├─ glob@7.2.3
[23:17:36.665] ├─ graceful-fs@4.2.10
[23:17:36.665] ├─ has-flag@4.0.0
[23:17:36.665] ├─ human-signals@2.1.0
[23:17:36.665] ├─ inflight@1.0.6
[23:17:36.665] ├─ inherits@2.0.4
[23:17:36.665] ├─ is-fullwidth-code-point@3.0.0
[23:17:36.665] ├─ is-stream@2.0.1
[23:17:36.665] ├─ isexe@2.0.0
[23:17:36.665] ├─ jiti@1.13.0
[23:17:36.665] ├─ jsonfile@6.1.0
[23:17:36.665] ├─ lru-cache@6.0.0
[23:17:36.665] ├─ merge-stream@2.0.0
[23:17:36.665] ├─ mimic-fn@2.1.0
[23:17:36.666] ├─ minimatch@3.1.2
[23:17:36.666] ├─ npm-run-path@4.0.1
[23:17:36.666] ├─ onetime@5.1.2
[23:17:36.666] ├─ path-is-absolute@1.0.1
[23:17:36.666] ├─ path-key@3.1.1
[23:17:36.666] ├─ rc9@1.2.2
[23:17:36.666] ├─ replace-in-file@6.3.5
[23:17:36.666] ├─ require-directory@2.1.1
[23:17:36.666] ├─ resolve-from@5.0.0
[23:17:36.666] ├─ semver@7.3.5
[23:17:36.666] ├─ shebang-command@2.0.0
[23:17:36.666] ├─ shebang-regex@3.0.0
[23:17:36.666] ├─ signal-exit@3.0.7
[23:17:36.667] ├─ string-width@4.2.3
[23:17:36.667] ├─ strip-final-newline@2.0.0
[23:17:36.667] ├─ supports-color@7.2.0
[23:17:36.667] ├─ web-vitals@2.1.4
[23:17:36.667] ├─ which@2.0.2
[23:17:36.667] ├─ wrap-ansi@7.0.0
[23:17:36.667] ├─ y18n@5.0.8
[23:17:36.667] ├─ yallist@4.0.0
[23:17:36.667] ├─ yargs-parser@21.0.1
[23:17:36.667] └─ yargs@17.5.1
[23:17:36.669] Done in 2.38s.
[23:17:36.817] [log] Running with @nuxt/vercel-builder version 0.22.1
[23:17:36.818] [log]  ----------------- Prepare build ----------------- 
[23:17:36.818] [log] Downloading files...
[23:17:36.818] [log] Working directory: /vercel/path0
[23:17:36.820] [log] Using yarn
[23:17:36.821] [info] Prepare build took: 2.970754 ms
[23:17:36.821] [log]  ----------------- Install devDependencies ----------------- 
[23:17:37.072] yarn install v1.22.17
[23:17:37.156] [1/5] Resolving packages...
[23:17:37.719] [2/5] Fetching packages...
[23:17:58.410] [3/5] Linking dependencies...
[23:17:58.411] warning "@aceforth/nuxt-optimized-images > raw-loader@4.0.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[23:17:58.411] warning "@aceforth/nuxt-optimized-images > url-loader@4.1.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[23:17:58.411] warning "@nuxtjs/vuetify > sass-loader@10.1.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
[23:17:58.411] warning "@nuxtjs/vuetify > vuetify@2.4.5" has unmet peer dependency "vue@^2.6.4".
[23:17:58.411] warning "@nuxtjs/vuetify > vuetify-loader@1.7.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[23:17:58.411] warning " > eslint-loader@4.0.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[23:18:22.459] [4/5] Building fresh packages...
[23:18:23.642] [5/5] Cleaning modules...
[23:18:27.537] Done in 50.47s.
[23:18:27.572] [info] Install devDependencies took: 50751.261212 ms
[23:18:27.572] [log]  ----------------- Nuxt build ----------------- 
[23:18:27.871] [log] Running nuxt build --standalone --no-lock --config-file "nuxt.config.js" /vercel/path0
[23:18:28.093] [warn] postcss@7.0.27 is installed but ^7.0.32 is expected
[23:19:25.365] [info] Nuxt build took: 57793.006257 ms
[23:19:25.366] [log]  ----------------- Install dependencies ----------------- 
[23:19:25.619] yarn install v1.22.17
[23:19:25.712] [1/5] Resolving packages...
[23:19:25.966] [2/5] Fetching packages...
[23:19:26.318] [3/5] Linking dependencies...
[23:19:26.320] warning "@aceforth/nuxt-optimized-images > raw-loader@4.0.2" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[23:19:26.320] warning "@aceforth/nuxt-optimized-images > url-loader@4.1.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[23:19:26.321] warning "@nuxt/content > @nuxt/types > sass-loader@10.1.1" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
[23:19:32.142] [4/5] Building fresh packages...
[23:19:32.609] [5/5] Cleaning modules...
[23:19:33.756] Done in 8.14s.
[23:19:33.772] [info] Install dependencies took: 8406.489799 ms
[23:19:33.772] [log]  ----------------- Collect artifacts ----------------- 
[23:19:43.918] [info] Collect artifacts took: 10141.657534 ms
[23:19:43.952] Installing dependencies...
[23:19:44.394] yarn install v1.22.17
[23:19:44.467] [1/4] Resolving packages...
[23:19:44.499] [2/4] Fetching packages...
[23:19:45.836] [3/4] Linking dependencies...
[23:19:46.080] [4/4] Building fresh packages...
[23:19:46.088] Done in 1.70s.
[23:20:02.124] Error! ENOENT: no such file or directory, stat '/vercel/path0/.vercel/output/functions/api/compare.js.func/node_modules'
[23:20:02.124] Error! ENOENT: no such file or directory, stat '/vercel/path0/.vercel/output/functions/api/result.js.func/node_modules'
[23:20:02.124] Error! ENOENT: no such file or directory, stat '/vercel/path0/.vercel/output/functions/api/save.js.func/node_modules'
[23:20:02.294] Error: Command "vercel build" exited with 1

Additionla Context Repository: https://github.com/vzrenggamani/bigfive-web Commit SHA: 6250539b964ff698221beea89a1c68cd0b40c514