Closed trannel closed 2 years ago
I will try to reproduce this behavior on my machine. Probably typescript version mismatch or smth? Before it always passed. We should include testing this in the pipeline, can you open an issue for it? So next time we know which commit broke it.
I updated the issue with more information and a second way to reproduce the issue.
TypeScript versions are all 4.7.4 on my machine, except for the express-oas-generator:
During docker compose it is the same:
The issue is that NODE_ENV is set to prodocution
in docker which is the expected behavior.
The test pipelines are set to development
which is the default. Therefore the typescript compiler is not as strict.
Describe the bug TypeScript checking fails during the build stage of
docker-compose --env-file=.env.production up --build
, even though all checks passed after the commit. Executing thenpm run build
(with or without--production
) andtsc -p .
manually also does not throw any errors. TypeScript appears to be stricter during the docker compose, than in every other place.To Reproduce Steps to reproduce the behavior:
git checkout dev
git checkout 04127932abd90856f3993f980221ab0ab1f2dbf7
docker-compose --env-file=.env.production up --build
tsc -p .
during its build stage.npm run build
to see no errortsc -p .
to see no errorAlternative steps to reproduce the behavior:
git checkout fix_docker_compose
src/types.ts
FilterMongo
| { $ne: null }
Expected behavior The TypeScript checks should already fail in the commit pipeline. Additionally, both
npm run build
andtsc -p .
should also fail and show the same errors, when I run them in a terminal on my machine.Screenshots These errors should be fixed in #62
Desktop (please complete the following information):