ui5-tooling icon indicating copy to clipboard operation
ui5-tooling copied to clipboard

Add "health check" to detect inconsistencies

Open matz3 opened this issue 5 years ago • 3 comments

Some kind of health check should be really helpful to detect common mistakes such as

  • compare manifest.json dependency declaration to package.json dependencies and give a hint about missing / undeclared dependencies
  • inconsistencies between sap.app/id of manifest.json and the actual component name
  • missing npm install (no dependencies found)
    • Currently this only gives an error but doesn't give a hint how to solve it: Error: [npm translator] Could not locate module @openui5/sap.ui.core via resolve logic (error: Cannot find module '@openui5/sap.ui.core/package.json'

It might be better to do such checks implicitly rather than introducing a new command.

matz3 avatar Jan 04 '19 14:01 matz3

Hi All,

When we are trying to deploy the application locally it's working fine but CI/CD pipeline is failing with below error. Please have a look below.

Error Message: [2021-03-19T13:44:58.289Z] info mtaBuild - [npm translator] Could not locate module @sap/ui5-builder-webide-extension via resolve logic (error: Cannot find module '@sap/ui5-builder-webide-extension/package.json' from '/home/jenkins/agent/workspace/paljob/app/maintaincharge') or in a collection [2021-03-19T13:44:58.298Z] info mtaBuild -

Regards, Om

OmPrakashJha1987 avatar Mar 19 '21 13:03 OmPrakashJha1987

Hi Om,

The @sap/ui5-builder-webide-extension module is not part of the UI5 Tooling project.

Please reach out to SAP support directly: https://support.sap.com/

If you still think this might be related to the UI5 Tooling project, please create a dedicated issue, since it's most probably not related to this feature request.

RandomByte avatar Mar 22 '21 13:03 RandomByte

If there is anyone out there still having this error, for me it was solved by clearing the cache 'npm clear cache --force' and run 'npm i' again.

PieterAtFlexso avatar May 17 '22 15:05 PieterAtFlexso