is there anything issue with the build with nodejs project today?

asproPRO

a year ago

anyone recently having issue with date-fns in railway? my latest deployment is not working due to error

Error: Cannot find module '/app/node_modules/date-fns/index.js'. Please verify that the package.json has a valid "main" entry

But checking the node_modules manually. the packages files including index.js is found

What's weird is that, this only happen today. yesterday the deployment work fine. and if Im going to revert to that deployment it will work.

What bugs me is that, when I try to re-deploy using the same code base(no change or anything) the issue will persist

Solved

2 Replies

Hey, I'm going to open this thread up to the community so they can chip in.


a year ago

This thread was cross-posted to discord, that thread can be found here

they had the target in their tsconfig.json file set to es2017, changing that to ES2022 solved their issues.


Status changed to Solved railway[bot] about 1 year ago