Skip to Content
avatar image
Former Member

use multiple external libraries in Fiori App from one file

Hi,

I'm using an external library in an UI5 app (Web3.js).

I've done it via manifest.json as usual.

But inside Web3.js several other libraries are included (e.g. in this case function.js)

Inside my controller I can access the Web3 global but not e.g. SolidityFunction which is part of function.js which part of web3.js.

in other web applications it is loaded like this:

var web3 = require('web3'); //not needed as done in manifest.json
var SolidityFunction = require('web3/lib/web3/function');

Is there a way to load explicitly these "sub-files"?

Thank you very much

Aksel

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 28, 2017 at 03:51 PM

    manifest.json can only load the resources specified at design time.....in this case web3 is loaded from manifest, and it is resposibility of web3 to load its dependents

    Add comment
    10|10000 characters needed characters exceeded