R
Railwayβ€’16mo 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β€’16mo ago
Project ID: e45e9d19-d214-4617-b7e2-8bf24ab595f9
Brody
Brodyβ€’16mo ago
try deleting your yarn.lock file and run yarn install then push your changes
scunl_53727
scunl_53727OPβ€’16mo ago
@Brody we tried it and it didn't work 😦
Brody
Brodyβ€’16mo ago
did git tell you that there was changes made to the lock file?
scunl_53727
scunl_53727OPβ€’16mo ago
I believe so but I'll try it one more time
Brody
Brodyβ€’16mo 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_53727OPβ€’16mo ago
I see Nixpacks v1.13.0 I don't see yarn specific version
Brody
Brodyβ€’16mo ago
screenshot please
scunl_53727
scunl_53727OPβ€’16mo ago
my local yarn version is 3.2.0 and just tried again , failed with same error msg
Brody
Brodyβ€’16mo ago
you see there, railway is using yarn 1x
scunl_53727
scunl_53727OPβ€’16mo ago
scunl_53727
scunl_53727OPβ€’16mo ago
ohh .. I wonder why it was building fine all this while haha this thing started recently
Brody
Brodyβ€’16mo ago
try adding this to your package.json
"packageManager": "[email protected]"
"packageManager": "[email protected]"
scunl_53727
scunl_53727OPβ€’16mo ago
within the dependencies object right?
Brody
Brodyβ€’16mo ago
no root object
scunl_53727
scunl_53727OPβ€’16mo ago
should I delete yarn lock again and rebuild?
Brody
Brodyβ€’16mo 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_53727OPβ€’16mo ago
didn't work 😦 same error but looked slightly different
Solution
Brody
Brodyβ€’16mo ago
i cant see anywhere youd change the yarn version, try generating the lock file with yarn 1x locally
scunl_53727
scunl_53727OPβ€’16mo ago
the first screenshot has the package.json file wehre it says packageManager 3.2.0
Brody
Brodyβ€’16mo ago
try generating the lock file with yarn 1x locally
scunl_53727
scunl_53727OPβ€’16mo ago
okay that worked for now, I'll let ya know if it happens again. Thanks @Brody ❀️
scunl_53727
scunl_53727OPβ€’16mo 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β€’16mo ago
github is having issues https://www.githubstatus.com/
scunl_53727
scunl_53727OPβ€’15mo ago
ahh cool cool thanks @Brody πŸ™‚
Brody
Brodyβ€’15mo ago
no problem
Want results from more Discord servers?
Add your server