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

nevo-david
PRO

9 months 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

0 Replies

9 months ago

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


nevo-david
PRO

9 months ago

Yes


nevo-david
PRO

9 months ago

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


9 months ago

full url link please?


nevo-david
PRO

9 months ago

it throws locks error on a deep package json



9 months ago

to the build that threw the errors


nevo-david
PRO

9 months ago

this is the link


9 months ago

that is a link to /logs


nevo-david
PRO

9 months ago

of the log explorer of the build


9 months ago

i would prefer a link to the failed build please


nevo-david
PRO

9 months ago

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

1308635254923460600


9 months ago

copy the url



9 months ago

perfect


9 months ago

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


nevo-david
PRO

9 months ago

Yes


nevo-david
PRO

9 months 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
PRO

9 months ago

you can try and run it with npm ci


9 months ago

i did -

1308639706103419000


nevo-david
PRO

9 months ago

so weird


nevo-david
PRO

9 months ago

I have a super computer


9 months ago

1308639899355840500


nevo-david
PRO

9 months ago

but railway running
ā•‘ setup │ nodejs20, npm-9x, openssl ā•‘


nevo-david
PRO

9 months ago

with npm 9


9 months ago

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


9 months ago

let me get you the commit im working with


nevo-david
PRO

9 months ago

great


9 months ago

f10bdbccea6fd99c954329569001484518f8ac14


9 months ago


nevo-david
PRO

9 months ago

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


nevo-david
PRO

9 months ago

with the package json


nevo-david
PRO

9 months ago

created for you?


nevo-david
PRO

9 months ago

I can just use that one šŸ˜„


9 months ago

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


nevo-david
PRO

9 months ago

Only if it's possible, yes


nevo-david
PRO

9 months ago

clearly my computer does it wrong


9 months 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
PRO

9 months ago

1308641131172728800


nevo-david
PRO

9 months ago

Thank you so much


9 months ago

wow eiter npm is slow or my internet, perhaps both


9 months ago


nevo-david
PRO

9 months ago

Thank you so much!


nevo-david
PRO

9 months ago

Will add it now šŸ™‚


9 months ago

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


nevo-david
PRO

9 months ago

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


9 months ago

oh wow i didnt know vercel did this too

1308647232907640800


nevo-david
PRO

9 months ago

Yeah, I need to remove it, it's annoying šŸ˜„


9 months ago

railway does it, and its not removable haha


nevo-david
PRO

9 months ago

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


9 months ago

fair


9 months ago

okay, let me know how it goes!


nevo-david
PRO

9 months ago

waiting šŸ˜„

1308647595186327600


nevo-david
PRO

9 months ago

so far looks good


9 months ago

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


nevo-david
PRO

9 months ago

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


nevo-david
PRO

9 months ago

with serverless functions and edge


nevo-david
PRO

9 months ago

etc…


nevo-david
PRO

9 months ago

in railway it will be containerized


9 months ago

is that bad?


nevo-david
PRO

9 months ago

Honestly, I don't know


nevo-david
PRO

9 months ago

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


nevo-david
PRO

9 months ago

cheaper probably also


9 months ago

maybe thats a weekend project


nevo-david
PRO

9 months ago

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


nevo-david
PRO

9 months ago

Just not sure about all the pros and cons


9 months ago

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


nevo-david
PRO

9 months ago

Yay! you commit worked!


9 months ago

awsome!


nevo-david
PRO

9 months ago

And I got a new contributor šŸ˜Ž


nevo-david
PRO

9 months ago

Thank you so much for all the help


9 months ago

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