Can't seem to install an existing project without --legacy-peer-deps
nevo-david
PROOP

a year ago

The project was working well, but on a new commit, it started throwing errors on lock files.
I matched the node version and npm version with the one on railway.
I am using NX + nix

72 Replies

brody
EMPLOYEE

a year ago

can you link to a deployment when you first saw this issue?


nevo-david
PROOP

a year ago

Yes


nevo-david
PROOP

a year ago

3f010081-49b8-4c49-bada-565a6ae3ad13


brody
EMPLOYEE

a year ago

full url link please?


nevo-david
PROOP

a year ago

it throws locks error on a deep package json



brody
EMPLOYEE

a year ago

to the build that threw the errors


nevo-david
PROOP

a year ago

this is the link


brody
EMPLOYEE

a year ago

that is a link to /logs


nevo-david
PROOP

a year ago

of the log explorer of the build


brody
EMPLOYEE

a year ago

i would prefer a link to the failed build please


nevo-david
PROOP

a year ago

Where to click? I click on the number next to "Backend"

1308635254923460600


brody
EMPLOYEE

a year ago

copy the url



brody
EMPLOYEE

a year ago

perfect


brody
EMPLOYEE

a year ago

so you deleted your local node_modules and ran npm ci locally without issue?


nevo-david
PROOP

a year ago

Yes


nevo-david
PROOP

a year ago

I don't know if you have time, but it's for my open-source project
https://github.com/gitroomhq/postiz-app/


nevo-david
PROOP

a year ago

you can try and run it with npm ci


brody
EMPLOYEE

a year ago

i did -

1308639706103419000


nevo-david
PROOP

a year ago

so weird


nevo-david
PROOP

a year ago

I have a super computer


brody
EMPLOYEE

a year ago

1308639899355840500


nevo-david
PROOP

a year ago

but railway running
║ setup │ nodejs20, npm-9x, openssl ║


nevo-david
PROOP

a year ago

with npm 9


brody
EMPLOYEE

a year ago

i dont think that matters all too much, its clear i can repro locally with npm 10, so the issue is elsewhere


brody
EMPLOYEE

a year ago

let me get you the commit im working with


nevo-david
PROOP

a year ago

great


brody
EMPLOYEE

a year ago

f10bdbccea6fd99c954329569001484518f8ac14


brody
EMPLOYEE

a year ago


nevo-david
PROOP

a year ago

I mean, would it be possible to just make a PR


nevo-david
PROOP

a year ago

with the package json


nevo-david
PROOP

a year ago

created for you?


nevo-david
PROOP

a year ago

I can just use that one 😄


brody
EMPLOYEE

a year ago

since i can repro, you want me to update the lock file and submit a pr?


nevo-david
PROOP

a year ago

Only if it's possible, yes


nevo-david
PROOP

a year ago

clearly my computer does it wrong


brody
EMPLOYEE

a year ago

yeah i can do that, let me grab the latest repo, i just grabbed the code from the commit of the deploy you linked


nevo-david
PROOP

a year ago

1308641131172728800


nevo-david
PROOP

a year ago

Thank you so much


brody
EMPLOYEE

a year ago

wow eiter npm is slow or my internet, perhaps both


brody
EMPLOYEE

a year ago


nevo-david
PROOP

a year ago

Thank you so much!


nevo-david
PROOP

a year ago

Will add it now 🙂


brody
EMPLOYEE

a year ago

do your testing please, i did not run the project locally


nevo-david
PROOP

a year ago

that's ok, worst case I will revert, the latest docker version will not be updated


brody
EMPLOYEE

a year ago

oh wow i didnt know vercel did this too

1308647232907640800


nevo-david
PROOP

a year ago

Yeah, I need to remove it, it's annoying 😄


brody
EMPLOYEE

a year ago

railway does it, and its not removable haha


nevo-david
PROOP

a year ago

I think in vercel it's also not removeable only if you disable preview deployments


brody
EMPLOYEE

a year ago

fair


brody
EMPLOYEE

a year ago

okay, let me know how it goes!


nevo-david
PROOP

a year ago

waiting 😄

1308647595186327600


nevo-david
PROOP

a year ago

so far looks good


brody
EMPLOYEE

a year ago

i forgot to ask, why vercel, why not run the frontend on railway too?


nevo-david
PROOP

a year ago

Honestly, many people pitched me about the advantages of running on vercel with all their special cases how they handle nextjs


nevo-david
PROOP

a year ago

with serverless functions and edge


nevo-david
PROOP

a year ago

etc…


nevo-david
PROOP

a year ago

in railway it will be containerized


brody
EMPLOYEE

a year ago

is that bad?


nevo-david
PROOP

a year ago

Honestly, I don't know


nevo-david
PROOP

a year ago

it would be easier to put on railway that's for sure


nevo-david
PROOP

a year ago

cheaper probably also


brody
EMPLOYEE

a year ago

maybe thats a weekend project


nevo-david
PROOP

a year ago

it will take me a few minutes to do it with nix


nevo-david
PROOP

a year ago

Just not sure about all the pros and cons


brody
EMPLOYEE

a year ago

it doesnt need to be done with nixpacks, you could do it with a dockerfile


nevo-david
PROOP

a year ago

Yay! you commit worked!


brody
EMPLOYEE

a year ago

awsome!


nevo-david
PROOP

a year ago

And I got a new contributor 😎


nevo-david
PROOP

a year ago

Thank you so much for all the help


brody
EMPLOYEE

a year ago

any time! let me know if you face any build errors when you try running the frontend on railway too


Loading...