I have two entities: User and Habit. A user can create multiple Habits, thus I use a OneToMany relation on the User (and
In tsconfig, setting the target to "esnext" and module to "commonjs" fixed the issue for me
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"types": ["node", "jest"],
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"target": "esnext"
},
"include": ["**/*.ts"]
}