I am a bit stuck here and I’m not sure if anyone will be able to help with how deep I am currently. I am 5hr, 43min. into this video by Ben Awad, where we are switching from MikroORM to TypeORM with a postgres DB.
The errors I am getting trying to run yarn watch
is:
(He even gets the const conn one! But gets deleted by deleting the /dist directory??)
Here is the server code for his backend.
The file in question is src/types.ts
and this is what I have currently:
import { Request, Response } from 'express';
import { Redis } from 'ioredis';
export type MyContext = {
req: Request & { session: Express.Session };
redis: Redis;
res: Response;
};
Which is EXACTLY what he had at this part of the video. I have this in my IDE freaking out:
Any help is super appreciated! Happy holidays, everyone!