R
Railway4mo ago
eddie

typescript: is railway ignoring tsconfig.json

I am getting these Type errors and am looking to just disable them so they aren't so strict with typescript errors in Railway. Locally i have them set in tsconfig.json (strict:false,etc) to not be to strict and it works locally but on railway deployments it seems to be super strict on these syntax errors
tsconfig.json:

{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strictNullChecks":false,
"strictFunctionTypes": false,
"strictPropertyInitialization": false,
"strictBindCallApply": false,

"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noImplicitAny": false,
"noImplicitReturns": false,
"allowJs": true,


"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./*"
]
},
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
tsconfig.json:

{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strictNullChecks":false,
"strictFunctionTypes": false,
"strictPropertyInitialization": false,
"strictBindCallApply": false,

"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noImplicitAny": false,
"noImplicitReturns": false,
"allowJs": true,


"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./*"
]
},
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
i am wondering how i can make them more quiet or is railway ignoring this file? Example typescript error message during railway builds: Type error: 'searchParams' is possibly 'null'. project 7bd9394f-6a2f-4a94-b405-cdc7d5edd6c7
1 Reply
Percy
Percy4mo ago
Project ID: 7bd9394f-6a2f-4a94-b405-cdc7d5edd6c7