Typescript with Express

I am getting the error below error:

npm ERR! code ELIFECYCLE
Jul 3 06:46:08 PM npm ERR! errno 1
Jul 3 06:46:08 PM npm ERR! scissor@1.0.0 start: node ./dist/server.js
Jul 3 06:46:08 PM npm ERR! Exit status 1
Jul 3 06:46:08 PM npm ERR!
Jul 3 06:46:08 PM npm ERR! Failed at the scissor@1.0.0 start script.
Jul 3 06:46:08 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jul 3 06:46:08 PM
Jul 3 06:46:08 PM npm ERR! A complete log of this run can be found in:
Jul 3 06:46:08 PM npm ERR! /opt/render/.cache/_logs/2023-07-03T17_46_08_799Z-debug.log

after specifying

Build command: npm ci; npm run build
Start command: npm run start,
and
“scripts”: {
“test”: “jest”,
“start”: “node ./dist/server.js”,
“dev”: “nodemon ./dist/server.js”,
“build”: “npm install && tsc”,
}, in my package.json file.
What can I do to resolve this error?

Hey,

It seems like there is an uncaught exception somewhere in your script located at ./src/server.ts

I would advise setting up a few more debug/logging points in there.

Jérémy.
Render Support, UTC+3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.