I was very excited to read Michal Keidar's blog:
I would very much like to run my apps from the workspace with re-use libraries also on the same workspace. I tried this out but it didn't seem to work and I would appreciate some help on why it didn't work. Here's what I did on the main workspace of my trial account (full stack Web IDE):
1) Create Simple UI5 application using template
2) Create library using template
3) In library.js add a type (new version like this: libraryjs.txt)
4) Using context menu on simple UI5 app add reference to the library. For reference manifest.json of simple UI5 app now looks like this:
"dependencies": {
"minUI5Version": "1.30.0",
"libs": {
"sap.ui.layout": {},
"sap.ui.core": {},
"sap.m": {},
"com.md.library": {
"minVersion": "1.0.0"
}
}
},
5) Update Component.js so that the new type is required. Top of Component.js now looks like this:
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"com/md/SimpleUI5/model/models",
"com/md/library/Test"
], function (UIComponent, Device, models, Test) {
"use strict";
6) Add run configuration exactly as per Michal's blog
What I get is this error:
Uncaught Error: failed to load
'com/md/library/Test.js' from ../../resources/com/md/library/Test.js: 404 - Not Found
I can also see a 404 on the network tab with the following url:
Have I missed something?