Open GoldSucc opened 2 hours ago
Note: replacing types with string:
const equipmentService = await connect.to("EquipmentService");
const query = SELECT.one.from("Equipment", "10000002");
const equipment = (await equipmentService.run(query)) as Equipment;
fixes error. so it is definitely generated file error const csn = cds.entities('EquipmentService')
Is there an existing issue for this?
Nature of Your Project
TypeScript
Current Behavior
const csn = cds.entities('EquipmentService') this is a part of generated file (js). in cds source I see that entities is actually object
export class entity extends struct<'entity'>
in runtime error happens when interaction with service happens:because js file is used
Expected Behavior
proper generation of js counterpart
Steps To Reproduce
Environment
Repository Containing a Minimal Reproducible Example
No response
Anything else?
No response