When using absolute path for importing entities, I get the following error:
› Error: Cannot find module 'src/category/entities/category.entity'
› Require stack:
› - /usr/src/app/src/photo/entities/photo.entity.ts
› - /usr/src/app/node_modules/typeorm/util/DirectoryExportedClassesLoader.js
› - /usr/src/app/node_modules/typeorm/connection/ConnectionMetadataBuilder.js
› - /usr/src/app/node_modules/typeorm/connection/Connection.js
› - /usr/src/app/node_modules/typeorm/connection/ConnectionManager.js
› - /usr/src/app/node_modules/typeorm/index.js
› - /usr/src/app/node_modules/typeorm-uml/lib/TypeormUmlCommand.js
› - /usr/src/app/node_modules/typeorm-uml/bin/run
This is how I am importing category
import { CategoryEntity } from 'src/module-1/entities/category.entity';
I have not found a way to resolve this and the only way these works is using relative paths. Is it possible to have support for using absolute paths when importing entities?