Skip to Content
0
May 04, 2020 at 03:54 PM

SAP Cloud SDK - Javascript RuleFieldMappingBeanList.js file missing

38318 Views

I am working on a node project in which I want to use the Position Management API under Employee Central API Package. So After generating the entities from ECPositionManagement.edmx file, while importing any Entity from Position Management, I am getting "error uncaughtException: Cannot find module './RuleFieldMappingBeanList'"

Error: Cannot find module './RuleFieldMappingBeanList'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (C:\Users\Rahil\Desktop\SAP Extention\SFSDKAPP\srv\generated\sfo-data-service-1\index.js:24:10)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

So I went into the folder where all the entities are generated and found that there no such file present but I found one typescript file with the same name but there was no JS file of that, whereas for each entity there is one JS and one Typescript file. I don't know where I will get it JS file.

Attachments