New Sep 10, 2025

Heroku build failed Outdated Yarn lockfile

Libraries, Frameworks, etc. All from Newest questions tagged vue.js - Stack Overflow View Heroku build failed Outdated Yarn lockfile on stackoverflow.com

I inherted an app that was delpoyed on heroku with a git repo with a ruby backend and vue.js front end. I am completly at a loss trying to figure this matter out the backend depolyed perfectly but i am having issues with the frontend. for starters the developer made me fork the repo and create my own local copy instead of transferring the repo. Not a big deal but the problem when i tried to change the repo for the front end from his to mine and re depoly i got the following error

from here i tried creating a new yarn lock file which lead to to a whole bunch of more errors which i can also post if needed. Hoping there is an easy workaround. Luckily the site is still functioning (not sure how) but i am completely stuck as I do not want to break the site with all the updates it appears to need. I am reaching out here to create the conversation with hopes someone can share so useful information. I literally need to update 1 line of code for an address on the existing site but can't get it to upload to heroku.

-----> Building on the Heroku-24 stack
-----> Using buildpacks:
       1. heroku/nodejs
       2. https://github.com/hone/heroku-buildpack-static
-----> Node.js app detected

-----> Creating runtime environment

NPM_CONFIG_LOGLEVEL=error USE_YARN_CACHE=true NODE_VERBOSE=false NODE_ENV=production NODE_MODULES_CACHE=true

-----> Installing binaries engines.node (package.json): 20.x engines.npm (package.json): 9.x engines.yarn (package.json): unspecified (use default)

Resolving node version 20.x... Downloading and installing node 20.19.5... Validating checksum Bootstrapping npm 9.x (replacing 10.8.2)... npm 9.9.4 installed Downloading and installing yarn (1.22.x) Installed yarn 1.22.22

-----> Restoring cache Cached directories were not restored due to a change in version of node, npm, yarn or stack Module installation may take longer for this build

-----> Installing dependencies Installing node modules (yarn.lock) yarn install v1.22.22 [1/4] Resolving packages... warning Lockfile has incorrect entry for "tmp@^0.0.33". Ignoring it. warning webpack > terser-webpack-plugin > cacache > glob@7.2.3: Glob versions prior to v9 are no longer supported warning webpack > terser-webpack-plugin > cacache > rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported warning webpack > terser-webpack-plugin > cacache > figgy-pudding@3.5.2: This module is no longer supported. warning webpack > terser-webpack-plugin > cacache > ssri > figgy-pudding@3.5.2: This module is no longer supported. error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. -----> Build failed ! Outdated Yarn lockfile Your application contains a Yarn lockfile (yarn.lock) which does not match the dependencies in package.json. This can happen if you use npm to install or update a dependency instead of Yarn. Please run the following command in your application directory and check in the new yarn.lock file: $ yarn install $ git add yarn.lock $ git commit -m "Updated Yarn lockfile" $ git push heroku main

https://help.heroku.com/TXYS53YJ ! Push rejected, failed to compile Node.js app. ! Push failed

Scroll to top