Skip to content

src/modules/** is excluded from tsconfig but contains entity files that don't compile #1200

Description

@RUKAYAT-CODER

tsconfig.json excludes src/modules, yet src/modules/gdpr/entities/user-consent.entity.ts, src/modules/ccpa/entities/consumer-privacy-preference.entity.ts and src/modules/sync/entities/sync.entity.ts exist there. These use MikroORM-style global decorators (not the TypeORM ones used everywhere else) and fail to compile / load as TypeORM entities. They are not registered in any Nest module (src/sync is the real, separate sync module).

Because the migration datasource glob excludes src/modules, they silently fall out of schema management — but the dead code is confusing and could be picked up accidentally.

Fix: delete the unused src/modules/gdpr, src/modules/ccpa, src/modules/sync entity files, or migrate them to real TypeORM entities and register them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions