R
Railwayβ€’10mo ago
scunl_53727

Getting deployment error:

11.24 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile. Tried different things but to no avail, can someone please help? I believe I'm on the paid support plan. Thank you! Service ID: e45e9d19-d214-4617-b7e2-8bf24ab595f9
Solution:
i cant see anywhere youd change the yarn version, try generating the lock file with yarn 1x locally
Jump to solution
26 Replies
Percy
Percyβ€’10mo ago
Project ID: e45e9d19-d214-4617-b7e2-8bf24ab595f9
Brody
Brodyβ€’10mo ago
try deleting your yarn.lock file and run yarn install then push your changes
scunl_53727
scunl_53727β€’10mo ago
@Brody we tried it and it didn't work 😦
Brody
Brodyβ€’10mo ago
did git tell you that there was changes made to the lock file?
scunl_53727
scunl_53727β€’10mo ago
I believe so but I'll try it one more time
Brody
Brodyβ€’10mo ago
what yarn version are you using locally, and what yarn version is railway using? (it should tell you in the build table at the top of the build logs)
scunl_53727
scunl_53727β€’10mo ago
I see Nixpacks v1.13.0 I don't see yarn specific version
Brody
Brodyβ€’10mo ago
screenshot please
scunl_53727
scunl_53727β€’10mo ago
my local yarn version is 3.2.0 and just tried again , failed with same error msg
Brody
Brodyβ€’10mo ago
you see there, railway is using yarn 1x
scunl_53727
scunl_53727β€’10mo ago
scunl_53727
scunl_53727β€’10mo ago
ohh .. I wonder why it was building fine all this while haha this thing started recently
Brody
Brodyβ€’10mo ago
try adding this to your package.json
"packageManager": "yarn@3.2.0"
"packageManager": "yarn@3.2.0"
scunl_53727
scunl_53727β€’10mo ago
within the dependencies object right?
Brody
Brodyβ€’10mo ago
no root object
scunl_53727
scunl_53727β€’10mo ago
should I delete yarn lock again and rebuild?
Brody
Brodyβ€’10mo ago
couldn't hurt, make sure you run yarn install though, and also make sure the file as been uploaded to the repo
scunl_53727
scunl_53727β€’10mo ago
didn't work 😦 same error but looked slightly different
Solution
Brody
Brodyβ€’10mo ago
i cant see anywhere youd change the yarn version, try generating the lock file with yarn 1x locally
scunl_53727
scunl_53727β€’10mo ago
the first screenshot has the package.json file wehre it says packageManager 3.2.0
Brody
Brodyβ€’10mo ago
try generating the lock file with yarn 1x locally
scunl_53727
scunl_53727β€’10mo ago
okay that worked for now, I'll let ya know if it happens again. Thanks @Brody ❀️
scunl_53727
scunl_53727β€’10mo ago
@Brody sorry to bother you again .. we are not having the same issue but sometimes when we push to a branch it doesn't trigger a build. I noticed that previously too and didn't know if the issues were related. We are currently using this in package.json "scripts": { "start": "serve -s build", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "preview": "react-scripts start" }, "devDependencies": { "@types/lodash": "^4.14.197", "@types/react-datepicker": "^4.15.0", "@types/react-lottie": "^1.2.6", "serve": "^14.2.1", "tailwindcss": "^3.3.3" } is there a limit on the number of builds per hr or something? oh it just triggered but a few mins late and not instantaneously as it was doing it before .. is it a lag in the system?
Brody
Brodyβ€’10mo ago
github is having issues https://www.githubstatus.com/
scunl_53727
scunl_53727β€’10mo ago
ahh cool cool thanks @Brody πŸ™‚
Brody
Brodyβ€’10mo ago
no problem