Invalid Value Type In yarn.lock?

I am fairly new to web development - very new to npm and yarn. I am at the end of a web developer bootcamp and trying to make my final project live on the web. Render was the suggested platform for this.

I utilized the Node.js instructions. Took the original template and updated with my code. Confirmed working on my machine (installed required npm packages) and confirmed merge working. When I pushed to the branch for auto deploy, was given the following:

Jan 16 01:27:45 AM  ==> Cloning from https://github.com/ProsperousHeart/smart-brain-ZTM-render...
Jan 16 01:27:46 AM  ==> Checking out commit 02788b877215012bda358fb6f299b51849246a9e in branch ZTM
Jan 16 01:27:48 AM  ==> Downloading cache...
Jan 16 01:27:59 AM  ==> Transferred 44MB in 8s. Extraction took 1s.
Jan 16 01:28:00 AM  ==> Detected Node version 19.4.0
Jan 16 01:28:00 AM  ==> Running build command 'yarn'...
Jan 16 01:28:01 AM  yarn install v1.22.5
Jan 16 01:28:01 AM  error An unexpected error occurred: "Invalid value type 26:0 in /opt/render/project/src/yarn.lock".
Jan 16 01:28:01 AM  info If you think this is a bug, please open a bug report with the information provided in "/opt/render/project/src/yarn-error.log".
Jan 16 01:28:01 AM  info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Jan 16 01:28:01 AM  ==> Build failed 😞
Jan 16 01:28:01 AM  ==> Generating container image from build. This may take a few minutes...

The file code can be found here.

resolved by deleting the yarn.lock file and re-running yarn install --check-files

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.