import error with ts-node-maintained #4997
-
Ubuntu 24.04 LTS Running on Coolify using Dockerfile build Dockerfile FROM node:22.16.0-alpine3.22 AS base
# All deps stage
FROM base AS deps
WORKDIR /app
ADD package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Production only deps stage
FROM base AS production-deps
WORKDIR /app
ADD package.json yarn.lock ./
RUN yarn install --frozen-lockfile --production
# Build stage
FROM base AS build
WORKDIR /app
COPY --from=deps /app/node_modules /app/node_modules
ADD . .
RUN node ace build --ignore-ts-errors
# Production stage
FROM base
ENV NODE_ENV=production
WORKDIR /app
COPY --from=production-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app
EXPOSE 3000
CMD ["node", "./bin/server.js"] Error
I have seen couple of similar issue on other users in discussion also. |
Beta Was this translation helpful? Give feedback.
Answered by
hackerrahul
Sep 20, 2025
Replies: 1 comment
-
Found the temporary fix Change and changed/added these line in transport: {
targets: targets()
.pushIf(app.inTest, targets.pretty())
.pushIf(app.inDev, targets.file({ destination: 1 }))
.pushIf(app.inProduction, targets.file({ destination: 1 }))
.toArray()
}, yet to find production issue |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hackerrahul
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the temporary fix
Change
NODE_ENV=production
toNODE_ENV=development
and changed/added these line in
config/logger.ts
fileyet to find production issue