Why is it that the object may be undefined, even though it is hard-coded in my file as a constant that never changes? I've tried using ts-ignore without success.
const expressConfig = {
app: {
PORT: 3000,
standardResponse: `Server running on port ${this.PORT}`
}
};
export default expressConfig;
The problem seems to be related to ${this.PORT}, but I'm unclear on why.