Open mdbetancourt opened 2 years ago
Because there is a circular dependency between the two files?
Try using import type
instead of import
:( i wanna use this test runner for a server side code with relations (loopback) and i need the metadata provided at runtime (the circular dependency is solved with lazy functions) this way peeky is unusable for me
// customer.ts
class Customer extends Entity {
// constructor, properties, etc.
@hasMany(() => Order, {keyTo: 'customerId'})
orders?: Order[];
}
// order.ts
@model()
export class Order extends Entity {
@belongsTo(() => Customer)
customerId: number;
}
i have two files
but throw Circular dependency detected