R
Railway•11mo ago
knu

custom type TS

some one can help me about this error, in my local machine is running but i get this error in deploy logs
No description
No description
No description
11 Replies
Percy
Percy•11mo ago
Project ID: b71ee966-e11c-4a83-80be-ab4fb3cc131c
knu
knuOP•11mo ago
b71ee966-e11c-4a83-80be-ab4fb3cc131c
Medim
Medim•11mo ago
What is ur build command? Is your tsconfig file getting gitignored?
knu
knuOP•11mo ago
{
"name": "shopees-api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "npx nodemon --files App.ts",
"start": "ts-node App.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"bcrypt": "^5.1.0",
"bson": "^6.2.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"express-actuator": "^1.8.4",
"jsonwebtoken": "^9.0.0",
"module-name": "^0.0.1-security",
"zod": "^3.21.4"
},
"devDependencies": {
"@prisma/client": "^5.6.0",
"@prisma/extension-accelerate": "^0.6.2",
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.17",
"@types/http-errors": "^2.0.1",
"@faker-js/faker": "^8.3.1",
"@types/bcrypt": "^5.0.0",
"@types/cors": "^2.8.13",
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^20.10.0",
"nodemon": "^3.0.1",
"prisma": "^5.6.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.2",
"typescript": "^5.3.2"
}
}
{
"name": "shopees-api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "npx nodemon --files App.ts",
"start": "ts-node App.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"bcrypt": "^5.1.0",
"bson": "^6.2.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"express-actuator": "^1.8.4",
"jsonwebtoken": "^9.0.0",
"module-name": "^0.0.1-security",
"zod": "^3.21.4"
},
"devDependencies": {
"@prisma/client": "^5.6.0",
"@prisma/extension-accelerate": "^0.6.2",
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.17",
"@types/http-errors": "^2.0.1",
"@faker-js/faker": "^8.3.1",
"@types/bcrypt": "^5.0.0",
"@types/cors": "^2.8.13",
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^20.10.0",
"nodemon": "^3.0.1",
"prisma": "^5.6.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.2",
"typescript": "^5.3.2"
}
}
this my package json, no build command just start
Medim
Medim•11mo ago
Oh yeah right! My bad, forgot its an api. What about this?
knu
knuOP•11mo ago
nothing tsconfig in gitignored
knu
knuOP•11mo ago
this gitignore and tsconfig
Medim
Medim•11mo ago
I'm out of ideas, but try adding files: true on the ts-node section in tsconfig.json
"ts-node": { "files": true }
"ts-node": { "files": true }
its on the very bottom of your tsconfig
knu
knuOP•11mo ago
@Brody can help me
Medim
Medim•11mo ago
#🛂|readme 5), don't ping staff, this is community help and your issue is mostly code-related. Be patient, someone with more knowledge than me will help you soon.
knu
knuOP•11mo ago
i'm no idea to bro
Want results from more Discord servers?
Add your server