Build failures - NodeJs package sync issue
lyneld
FREEOP

8 months ago

Hi! I've been struggling to get my app to deploy on Railway. There is an issue related to the build, but I can't seem to figure out how to fix it. Below is the error from the build log.

npm error npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing.

npm error Missing: react@19.1.0 from lock file

npm error Missing: react-dom@19.1.0 from lock file

npm error Missing: scheduler@0.26.0 from lock file

I've deleted the package-lock files and ran npm install (for both frontend and backend) on my local system, and committed the changes with updated package files several times to no avail.

What I've noticed though is that my package-lock and package.json files has react@18.3.1. But the error seems to be about 19.1.0, which i don't have anywhere?

0 Replies

Loading...