R
Railwayā€¢2d ago
Nevo David

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

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
53 Replies
Percy
Percyā€¢2d ago
Project ID: N/A
Brody
Brodyā€¢2d ago
can you link to a deployment when you first saw this issue?
Nevo David
Nevo DavidOPā€¢2d ago
Yes 3f010081-49b8-4c49-bada-565a6ae3ad13
Brody
Brodyā€¢2d ago
full url link please?
Nevo David
Nevo DavidOPā€¢2d ago
it throws locks error on a deep package json
Nevo David
Nevo DavidOPā€¢2d ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brodyā€¢2d ago
to the build that threw the errors
Nevo David
Nevo DavidOPā€¢2d ago
this is the link
Brody
Brodyā€¢2d ago
that is a link to /logs
Nevo David
Nevo DavidOPā€¢2d ago
of the log explorer of the build
Brody
Brodyā€¢2d ago
i would prefer a link to the failed build please
Nevo David
Nevo DavidOPā€¢2d ago
Where to click? I click on the number next to "Backend"
No description
Brody
Brodyā€¢2d ago
copy the url
Nevo David
Nevo DavidOPā€¢2d ago
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brodyā€¢2d ago
perfect so you deleted your local node_modules and ran npm ci locally without issue?
Nevo David
Nevo DavidOPā€¢2d ago
Yes
Nevo David
Nevo DavidOPā€¢2d ago
I don't know if you have time, but it's for my open-source project https://github.com/gitroomhq/postiz-app/
GitHub
GitHub - gitroomhq/postiz-app: šŸ“Ø Schedule social media posts, measu...
šŸ“Ø Schedule social media posts, measure them, exchange with other members and get a lot of help from AI šŸš€ - gitroomhq/postiz-app
Nevo David
Nevo DavidOPā€¢2d ago
you can try and run it with npm ci
Brody
Brodyā€¢2d ago
i did -
No description
Nevo David
Nevo DavidOPā€¢2d ago
so weird I have a super computer
Brody
Brodyā€¢2d ago
No description
Nevo David
Nevo DavidOPā€¢2d ago
but railway running ā•‘ setup ā”‚ nodejs_20, npm-9_x, openssl ā•‘ with npm 9
Brody
Brodyā€¢2d ago
i dont think that matters all too much, its clear i can repro locally with npm 10, so the issue is elsewhere let me get you the commit im working with
Nevo David
Nevo DavidOPā€¢2d ago
great
Nevo David
Nevo DavidOPā€¢2d ago
I mean, would it be possible to just make a PR with the package json created for you? I can just use that one šŸ˜„
Brody
Brodyā€¢2d ago
since i can repro, you want me to update the lock file and submit a pr?
Nevo David
Nevo DavidOPā€¢2d ago
Only if it's possible, yes clearly my computer does it wrong
Brody
Brodyā€¢2d 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
Nevo DavidOPā€¢2d ago
No description
Nevo David
Nevo DavidOPā€¢2d ago
Thank you so much
Brody
Brodyā€¢2d ago
wow eiter npm is slow or my internet, perhaps both https://github.com/gitroomhq/postiz-app/pull/440
Nevo David
Nevo DavidOPā€¢2d ago
Thank you so much! Will add it now šŸ™‚
Brody
Brodyā€¢2d ago
do your testing please, i did not run the project locally
Nevo David
Nevo DavidOPā€¢2d ago
that's ok, worst case I will revert, the latest docker version will not be updated
Brody
Brodyā€¢2d ago
oh wow i didnt know vercel did this too
No description
Nevo David
Nevo DavidOPā€¢2d ago
Yeah, I need to remove it, it's annoying šŸ˜„
Brody
Brodyā€¢2d ago
railway does it, and its not removable haha
Nevo David
Nevo DavidOPā€¢2d ago
I think in vercel it's also not removeable only if you disable preview deployments
Brody
Brodyā€¢2d ago
fair okay, let me know how it goes!
Nevo David
Nevo DavidOPā€¢2d ago
waiting šŸ˜„
No description
Nevo David
Nevo DavidOPā€¢2d ago
so far looks good
Brody
Brodyā€¢2d ago
i forgot to ask, why vercel, why not run the frontend on railway too?
Nevo David
Nevo DavidOPā€¢2d ago
Honestly, many people pitched me about the advantages of running on vercel with all their special cases how they handle nextjs with serverless functions and edge etc... in railway it will be containerized
Brody
Brodyā€¢2d ago
is that bad?
Nevo David
Nevo DavidOPā€¢2d ago
Honestly, I don't know it would be easier to put on railway that's for sure cheaper probably also
Brody
Brodyā€¢2d ago
maybe thats a weekend project
Nevo David
Nevo DavidOPā€¢2d ago
it will take me a few minutes to do it with nix Just not sure about all the pros and cons
Brody
Brodyā€¢2d ago
it doesnt need to be done with nixpacks, you could do it with a dockerfile
Nevo David
Nevo DavidOPā€¢2d ago
Yay! you commit worked!
Brody
Brodyā€¢2d ago
awsome!
Nevo David
Nevo DavidOPā€¢2d ago
And I got a new contributor šŸ˜Ž Thank you so much for all the help
Brody
Brodyā€¢2d ago
any time! let me know if you face any build errors when you try running the frontend on railway too
Want results from more Discord servers?
Add your server