cancel
Showing results for 
Search instead for 
Did you mean: 

Error in loading sap.viz library

chandrahas_s
Discoverer

I want to use VizFrame charts in my application developed through BAS. When I'm trying to load a basic VizChart, it's giving me the following error:

Failed to load component for container container - ModuleError: Failed to resolve dependencies of 'sap/viz/library.js'.

I have added the library in the dependencies in manifest.json but error remains the same:

Even I tried to add this library in index.html file as follows:

data-sap-ui-libs="sap.m, sap.viz"

But the error is still coming..

Can anyone please suggest what needs to be done to load sap.viz library on ui5?

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

Looks like you're bootstrapping SAPUI5 version 1.104 which is out of maintenance. Is the issue reproducible even with the latest long-term maintenance version e.g. 1.108?

Is your application somewhere using jQuery UI without declaring its dependency in the app code?

chandrahas_s
Discoverer
0 Kudos

Hi Boghyon,

I have tried with the latest version (1.112.1) and with 1.108 version after you suggested, but it isn't working.

There is also no dependency on jQuery UI to while loading the viz library..

PS: When I tried with the same version in my trial account, it's working fine. I am able to load the viz library.

Thanks,

Chandrahas

sharanspace
Discoverer
0 Kudos

Hi csettaluri,

Can you try changing the UI bootstrap from "sapui5.netweaver.ondemand.com" to "ui5.sap.com"?

https://ui5.sap.com/#/topic/2d3eb2f322ea4a82983c1c62a33ec4ae

chandrahas_s
Discoverer
0 Kudos

Hi Sharan - I have tried the above approach but it's giving me the same error.

Accepted Solutions (0)

Answers (0)