Resolve npm dependency error in production
I'm getting this error after deploying. I've added
buildScript = "npm install --legacy-peer-deps"
inside railway.toml
file but it's not working.
13 Replies
Project ID:
c85c814f-f191-4ef1-8291-2368d5f11010
update your deps and use pnpm or yarn
why do you need version locked dependencies
please send your full railway.toml file?
that too
but yeah what alex said would be the proper solution
yeah using legacy peer deps or forcing dependencies to install is never a good idea
if I change the version I'll have to change the code in multiple places
... you should do that then
<:bruh_moment:669042568356429844>
I know it's not a good practice but somehow I need that
fine
its
BuildCommand
not buildScript
updated, not working @Brody
then I'm gonna have to recommend you go with Alex's solution