SAP / ui5-typescript

Tooling to enable TypeScript support in SAPUI5/OpenUI5 projects
https://sap.github.io/ui5-typescript
Apache License 2.0
200 stars 28 forks source link

Better error message when UI5 types are not found #375

Closed akudev closed 2 years ago

akudev commented 2 years ago

When UI5 types are not recognized, one reason could be that the UI5 type definitions are not available - an error message is hinting at this is already given. It could be more verbose, though, and:

  1. inform the user at which paths the type definitions are expected to be according to tsconfig
  2. check these locations whether the definitions are there
  3. if not, hint to reasons why this could be the case (npm install missing or installed in a different node_modules folder)
  4. possibly even check the hierarchy for such node_modules folders and look whether the types are there

As reported in https://github.com/ui5-community/generator-ui5-ts-library/issues/2, it can happen that due to some yarn setup the types are installed somewhere else.