Build Error after Redeploy

Recently, I've been facing a weird error whenever I redeploy my railway instance from the dashboard.
#12 46.64 error TS2688: Cannot find type definition file for 'lodash'.
#12 46.64 The file is in the program because:
#12 46.64 Entry point for implicit type library 'lodash'
#12 46.69 error Command failed with exit code 2.
#12 46.64 error TS2688: Cannot find type definition file for 'lodash'.
#12 46.64 The file is in the program because:
#12 46.64 Entry point for implicit type library 'lodash'
#12 46.69 error Command failed with exit code 2.
The weird thing is that this only happens when reilway redeploys the service because I changed ENVs or sth. If I push a new commit to github, it redeploys as usual and everything works fine. I've never had any similar issue for the last year until yesterday. Deploying on europe-west4 using nixpacks
5 Replies
Percy
Percy14mo ago
Project ID: 5ca14ea2-c8ed-4891-8c91-0f022971a0f3
sandrowegmann
sandrowegmann14mo ago
5ca14ea2-c8ed-4891-8c91-0f022971a0f3
Brody
Brody14mo ago
I'm no JavaScript developer but do you have the package for the lodash types in your dev dependencies? side note, are you both on the pro plan and a part of railways priority boarding?
sandrowegmann
sandrowegmann14mo ago
Hey Brody! Nah, it's all in main dependencies. Like I said, it works if I do a fresh commit but not on a simple redeploy Yep I am
Brody
Brody14mo ago
well theres not all that much to go off of here, do you think you could put together a minimal repducable example project/repo/service?
Want results from more Discord servers?
Add your server