I migrate my app from Heroku to Railway a week ago. My made the first deployment and everything works OK. Now I made the first commit to the main branch and because of the trigger (by Github) the deployment/build is trigger but a I keep getting and build error which I search in the internet and all the answer are related to "increase the limit of inotify watchers on your system".
This is the build error:
#13 7.102 at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
#13 7.102 at Object.watch (node:fs:2301:34)
#13 7.102 at createFsWatchInstance (/app/node_modules/chokidar/lib/nodefs-handler.js:119:15)
#13 7.102 at setFsWatchListener (/app/node_modules/chokidar/lib/nodefs-handler.js:166:15)
#13 7.102 at NodeFsHandler._watchWithNodeFs (/app/node_modules/chokidar/lib/nodefs-handler.js:331:14)
#13 7.102 at NodeFsHandler._handleFile (/app/node_modules/chokidar/lib/nodefs-handler.js:395:23)
#13 7.102 at NodeFsHandler._addToNodeFs (/app/node_modules/chokidar/lib/nodefs-handler.js:637:21)
#13 7.102 Emitted 'error' event on FSWatcher instance at:
#13 7.102 at FSWatcher._handleError (/app/node_modules/chokidar/index.js:647:10)
#13 7.102 at NodeFsHandler._addToNodeFs (/app/node_modules/chokidar/lib/nodefs-handler.js:645:18) {
#13 7.102 errno: -28,
#13 7.102 syscall: 'watch',
#13 7.102 code: 'ENOSPC',
#13 7.102 path: '/app/src/email/img/confirmacionCuerpo.png',
#13 7.102 filename: '/app/src/email/img/confirmacionCuerpo.png'
#13 7.102 }
#13 ERROR: executor failed running [/bin/bash -ol pipefail -c npm run build]: exit code: 1
-----
> [stage-0 9/9] RUN --mount=type=cache,id=s/89c7db64-8cf1-4911-b34e-829524bc70d8-node_modules/cache,target=node_modules/.cache npm run build:
-----
executor failed running [/bin/bash -ol pipefail -c npm run build]: exit code: 1
Error: Docker build failed