Symptom
- Typescript compiler cannot resolve UI5 AMD module paths such as sap/m/MessageToast and sap/m/Dialog in the editor.
- Occurs in all UI5 projects (newly generated and existing).
- Preview and deployment work, but editor features like autocomplete and live type checking are missing.
- Error message: Cannot find module 'sap/m/...'.
- Error code: TS2307
Read more...
Environment
SAPUI5 Adaptation Project for SAP BAS
Keywords
typescript, tsconfig, typeroots, @sapui5/ts-types-esm, @openui5/ts-types-esm, sapui5, openui5, amd module, sap/m, TS2307, cannot find module, business application studio, BAS, ui5 types, adaptation project , KBA , CA-UI5-FL-ADP-BAS , SAPUI5 Adaptation Project for SAP BAS , CA-BAS-FWK , This is a root node for Simple Extension framework , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview