We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We followed SCIM API documentation to deploy an app: https://api.sap.com/api/PlatformAPI/overview
The command used:
npx openapi-generator --input resources/service-specs --outputDir src/generated --skipValidation --transpile
In cat-service.js we added const { SCIMUsersShadowUsersApi } = require("../src/generated/PlatformAPI/scim-users-shadow-users-api");
But this file points to the .ts and deployment fails due to not finding this module.
We also tried explicitly mentioning the .js at the end of the file but it keeps navigating to the .ts and deployment still fails:
const { SCIMUsersShadowUsersApi } = require("../src/generated/PlatformAPI/scim-users-shadow-users-api.js");
Expecting to point to a .js file, but .ts file is sought and thus module-not-found problem.
node -v
No response
Development
Blocked
Days.
The text was updated successfully, but these errors were encountered:
Hi @altermanm, the cause is likely wrong / missing dependencies.
You need @types/node and @sap-cloud-sdk/openapi in addition to @sap-cloud-sdk/openapi-generator for transpilation to work.
@types/node
@sap-cloud-sdk/openapi
@sap-cloud-sdk/openapi-generator
You can find more information in our documentation, especially the note explaining transpilation.
The version you listed for the SAP Cloud SDK SAP Cloud SDK version: sap/cds-dk [8.6.1] is not actually the SAP Cloud SDK.
SAP Cloud SDK version: sap/cds-dk [8.6.1]
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
We followed SCIM API documentation to deploy an app: https://api.sap.com/api/PlatformAPI/overview
The command used:
npx openapi-generator --input resources/service-specs --outputDir src/generated --skipValidation --transpile
In cat-service.js we added const { SCIMUsersShadowUsersApi } = require("../src/generated/PlatformAPI/scim-users-shadow-users-api");
But this file points to the .ts and deployment fails due to not finding this module.
We also tried explicitly mentioning the .js at the end of the file but it keeps navigating to the .ts and deployment still fails:
const { SCIMUsersShadowUsersApi } = require("../src/generated/PlatformAPI/scim-users-shadow-users-api.js");
Steps to Reproduce
npx openapi-generator --input resources/service-specs --outputDir src/generated --skipValidation --transpile
Expected Behavior
Expecting to point to a .js file, but .ts file is sought and thus module-not-found problem.
Screenshots
Used Versions
node -v
: v20.18.1Code Examples
No response
Log File
No response
Affected Development Phase
Development
Impact
Blocked
Timeline
Days.
Additional Context
No response
The text was updated successfully, but these errors were encountered: