Trouble deploying Nuxt 2 app

Hello everyone, I’ve been having some issues deploying an app on Nuxt 2 recently, and I’m having trouble deciphering the logs from the deploy. What seems to happen is that it gets stuck on the build, and eventually fails due to timing out. Here are the logs:

4:09:12 PM: build-image version: 4b067841aaa59ef71931d3505b98c2bc3e63f36f (focal)
4:09:12 PM: buildbot version: a97756545adbd82de83b06c902122c919d70e7f2
4:09:12 PM: Fetching cached dependencies
4:09:12 PM: Failed to fetch cache, continuing with build
4:09:12 PM: Starting to prepare the repo for build
4:09:12 PM: No cached dependencies found. Cloning fresh repo
4:09:12 PM: git clone --filter=blob:none git@gitlab.com:curtisnn/efinaldate
4:09:13 PM: Preparing Git Reference merge-requests/94/head
4:09:16 PM: Starting to install dependencies
4:09:16 PM: Python version set to 3.8
4:09:16 PM: Attempting Ruby version 2.7.2, read from environment
4:09:17 PM: Using Ruby version 2.7.2
4:09:17 PM: Started restoring cached go cache
4:09:17 PM: Finished restoring cached go cache
4:09:17 PM: Installing Go version 1.16.5 (requested 1.16.5)
4:09:21 PM: go version go1.16.5 linux/amd64
4:09:22 PM: Using PHP version 8.0
4:09:23 PM: v16.20.0 is already installed.
4:09:23 PM: Now using node v16.20.0 (npm v8.19.4)
4:09:23 PM: Enabling Node.js Corepack
4:09:23 PM: Started restoring cached build plugins
4:09:23 PM: Finished restoring cached build plugins
4:09:23 PM: Started restoring cached corepack dependencies
4:09:23 PM: Finished restoring cached corepack dependencies
4:09:23 PM: No npm workspaces detected
4:09:23 PM: Started restoring cached node modules
4:09:23 PM: Finished restoring cached node modules
4:09:23 PM: Installing npm packages using npm version 8.19.4
4:55:11 PM: Build exceeded maximum allowed runtime

The site name: https://alpha-efinaldate.netlify.app

Hiya :wave:t6: welcome to the forums! Thanks for reaching out. Have you tried optimising your build?

It actually turns out that the problem was an out-of-date dependency that (luckily) was not actually being used in my project. I was able to find this by deleting my package.json and node_modules files, then re-installing them locally. When doing so, it got hung up on installing a dependency. The dependency in question was "@aws-amplify/ui-components": "^0.10.3",.

After removing that (and updating other dependencies in my project) I was able to deploy successfully.