I have a nestjs based api that I'm trying to build using an Azure devops pipeline, but the build fails with the following error:
src/auth/auth.controller.ts(49,7): error TS2322: Type 'false' is not assignable to type 'Date'.
src/auth/auth.controller.ts(73,7): error TS2322: Type 'false' is not assignable to type 'Date'.
it is originating from here:
res.cookie('session', session._id, {
httpOnly: true,
signed: true,
expires: false,
secure: true,
});
that being an express res, according to @types/express and intellisense:
I am installing all my packages via the exact same azure artifact feed and the build works fine locally.
Why is this TS error wrongfully thrown in azure devops pipeline?
I have also successfuly built locally with the environment variable properly set.
