I currently have a NestJS project (project A) with one module that utilizes the @nestjs/typeorm
and typeorm
packages.
In my other NestJS project (project B), I plan to use this module. However, there is a potential issue. Project B contains entities that require annotations (decorators) defined in the typeorm package. To access these decorators, I would need to install the typeorm package in project B which could result in differing versions between project A and project B. Therefore, it might be best to re-export all the required typeorm
components from project A along with its corresponding module, is that correct?
To achieve this, I re-export everything like so in project A:
export * from 'typeorm';
Executing this command in the console seems to work fine without any unexpected behavior. However, in my IDE (Visual Studio Code), it highlights the code and displays a message saying
Module (project A) has no exported member Column
.
Any suggestions on how to resolve this issue in my IDE?