-
Couldn't load subscription status.
- Fork 30
Closed
Labels
Description
Describe the bug
When running the command
ui5-download-apijson sap.m,sap.ui.core,sap.ui.integration,sap.tnt,sap.ui.layout,sap.ui.table,sap.uxap 1.120.26 --targetDir ./dist/test-resources/api
it returns
[info] @ui5/dts-generator/download-apijson: Download api.json files for
[info] @ui5/dts-generator/download-apijson: libs: sap.m,sap.ui.core,sap.ui.integration,sap.tnt,sap.ui.layout,sap.ui.table,sap.uxap
[info] @ui5/dts-generator/download-apijson: version: 1.120.26
[info] @ui5/dts-generator/download-apijson: targetDir: ./dist/test-resources/api
[info] @ui5/dts-generator/download-apijson:
[error] @ui5/dts-generator/download-apijson: error fetching sapui5 metadata
[error] @ui5/dts-generator/download-apijson: An error occurred Error: One of the libraries was given as 'sap.m', but this library does not seem to exist among the OpenUI5 libraries in the given version.
Available OpenUI5 libraries in this version are: .
at file:///Users/user/workspace/sol-ui-op.worktrees/fb_28947_central_mockserver/node_modules/@ui5/dts-generator/dist/js-utils/ui5-metadata.js:80:19
at Array.forEach (<anonymous>)
at expandTransitiveDeps (file:///Users/user/workspace/sol-ui-op.worktrees/fb_28947_central_mockserver/node_modules/@ui5/dts-generator/dist/js-utils/ui5-metadata.js:78:10)
at download (file:///Users/user/workspace/sol-ui-op.worktrees/fb_28947_central_mockserver/node_modules/@ui5/dts-generator/dist/download-apijson.js:23:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async main (file:///Users/user/workspace/sol-ui-op.worktrees/fb_28947_central_mockserver/node_modules/@ui5/dts-generator/dist/download-apijson.js:39:5)
Expected behavior
expected to have the api.json file with all libraries
Additional context
upon checking the code, it seems that the openui5 metadata is captured from https://registry.npmjs.com/-/v1/search?text=scope:openui5&size=100 according to js-utils/ui5-metadata.js but the query always return empty