TSC and watchpatterns failing
julimen5
PROOP

2 months ago

Hi, I was using NIXPACK until today that I wanted to migrate to RAILPACK for my frontend and backend (I have a mono repo)
After migrating I created a file named packages/backend/railway.json

{
	"build": {
		"context": "../../",
		"builder": "RAILPACK",
		"buildCommand": "apt-get update && apt-get install -y imagemagick ghostscript graphicsmagick && bun install && bun run build:backend",
		"watchPatterns": [
			"packages/backend/**",
			"packages/common/**",
			"!.vscode/**"
		]
	},
	"deploy": {
		"startCommand": "cd packages/backend && bun run dev",
		"healthcheckPath": "/health",
		"healthcheckTimeout": 100
	}
}
  1. issue is that watch patterns are not being consider. EX: last commit I pushed only a change to packages/backend/railway.json and it deployed both backend and frontend.

  2. Then I had a lot of TS errors that I think I shouldn't be having since I wasn't having them with NIXPACK

    $ tsc src/api/custom-field/custom-field.mapper.ts(2,52): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations. src/api/receipt/receipt.controller.ts(22,29): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations. src/api/transaction-rule/transaction-rule.controller.ts(16,29): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations. src/api/transaction/transaction.controller.ts(46,43): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations.

    Any ideas? mainly with the point 2. since it's the most important one.

    In the meantime I changed back to NIXPACK.

$20 Bounty

1 Replies

Railway
BOT

2 months ago


brody
EMPLOYEE

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody about 2 months ago


Loading...