R
Railway

✋|help

Build Error after Redeploy

Ssandrowegmann9/19/2023
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.


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
Ssandrowegmann9/19/2023
5ca14ea2-c8ed-4891-8c91-0f022971a0f3
BBrody9/19/2023
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?
Ssandrowegmann9/19/2023
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
BBrody9/19/2023
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?

Looking for more? Join the community!

Recommended Posts
Restarting database not working.My postgres database wont restart. All data is not modifiy after restaring it.Adding support for python with isolated-vm npm packageHello, I am using a project that requires the isolated-vm npm package (https://www.npmjs.com/packageListmonk; Static FilesNot sure why my post was deleted, but here it is again: Hello, I've deployed Listmonk on Railway, ConcurrencyWill concurrent requests to a single endpoint work? And where would the logs appear for each individProblem with Flask-Caching/ RedisI'm trying to setup a simple caching mecanism to my Plotly Dash (Flask) application deployed to railWorker Killed IssueI'm getting the attached error when I try to request my app from a React frontend, whereas I wasn't Need help with deploymentSubject: Seeking Guidance on Loading Environment Variables in Railway for My Go API Deployment Hi ebun: command not foundHello, I'm trying to migrate my project to bun to make TS easier, and I'm when deploying, the logs Metrics on Number of Web RequestsI just deployed a web API and would like to keep track of the number of requests made to the API. DoIs there a timeout on my api functions when deploying a nextjs app?I coudnt find anything about this on google or the docs, Thanks for helpingI have problems with the database when I do a deploy.I have a mongo DB database that is connected to a node js, to connect to mongo I use the url that moI have problems with the database when I do a deploy.I have a mongo DB database that is connected to a node js, to connect to mongo I use the url that moError comunicate with internal servicecsI'm trying to make a post on a route that is in an internal service on railway = api-ecompleto.railwUnchanged repo fails to deploy on env var change.I had this exact setup running last night, and this morning when I changed an environment variable iIs it possible to host Unity project?I have a unity game development project which runs C# Since I already use railway for my other projCan't see organizations reposTitle.