I clone the demo project for ui5-tooling and run it successfully. however if I do a little change to the project, some errors occur.
Reproduce
I did a little change to the manifest.json as below:
"sap.ui5": { "dependencies": { "libs": { "sap.ui.core": { "lazy": false }, "sap.m": { "lazy": false }, "sap.ui.layout": { "lazy": false }, "sap.ui.unified": { "lazy": false }, "sap.ushell": { "lazy": false } } },
add another lib 'sap.ushell'. then run the opa again with: 'ui5 serve -o'
Symptom
The opa cannot run, in the developers tool of chrome, i found the error: Error: failed to load 'sap/ushell/library.js' from resources/sap/ushell/library.js: 404 - Not Found...
Explaination
I did this change because when I trying to enable ui5 tooling to my existing projects, I can not run OPA successfully. If i mannually add the lib by 'ui5 add ', then more errors occurs, like 'File not found: /resources/sap/ui/core/themes/sap_belize/base.less'
The lib
sap.ushellis available only in SAPUI5 since it's not open-sourced.As of UI5 tooling
specVersion2, you can define whether the application project should useSAPUI5orOpenUI5in theui5.yamlfile.index.html: * * In case you'd like to bootstrap SAPUI5 via the CDN URL, see:sap.ushellto the list of libraries.You can doublecheck the used
frameworkand the list of added UI5 libraries inui5.yamllocated in the project's root directory.