cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Failed to execute module factory for ''sap/gantt/library.js'

Chandan
Product and Topic Expert
Product and Topic Expert
0 Kudos
523

Hello Experts,

I have followed the below tutorial to create a Fiori Elements application.

Create an Incident Management App with SAP Fiori Elements for OData V4

I can execute the project locally, but after deploying it to BTP Cloud Foundry, I am getting the below error. This comes when I try to open the object page. And the object page does not load.

 

Any idea here how to resolve? Below is the code repository:

CSPanda21/CAP_FioriElement: CAP project with Fiori elements (github.com)

 SAP Fiori Elements SAP Fiori Launchpad  SAP Fiori Cloud 

ERROR:

Failed to resolve dependencies of 'sap/gantt/simple/GanttChartContainer.js'
-> 'sap/gantt/library.js'
-> 'sap/gantt/config/Mode.js': failed to execute module factory for ''sap/gantt/library.js'
-> 'sap/gantt/config/Mode.js'': Failed to execute 'sap/gantt/config/Mode.js': Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src * data: blob:".

Accepted Solutions (1)

Accepted Solutions (1)

Margit_Wagner
Product and Topic Expert
Product and Topic Expert

Hi @Chandan 

We are very happy to welcome you to our SAP Learning Group 

This is the perfect place for you to ask questions related to our SAP Learning Journeys or to our certification published on SAP Learning and get SAP expert advice and support.

While the topic you addressed  isn't specifically covered here  and since it can hardly be answered without in-depth knowledge, I can point you to an excellent resource to help find an answer to your question.

Please access the Create an Incident Management App with SAP Fiori Elements for OData V4 site

Click the Feedback option there and choose the channel that fits best for your inquiry

In your case I recommend to post the question  in our SAP community where you can directly exchange with experienced experts with project Background -  SAP Community is a public space where anyone can start discussions and questions are answered by anyone.
 

Margit_Wagner_0-1717496092526.png

Please always feel free to come back to our SAP Learning group to ask your questions related to our S Learning Journeys or to our certification published on SAP Learning  and collaborate with other learners to reach your learning goals and to prepare for your SAP Certification exams. However, for your particular question, I'd recommend the resource above.

I hope this helps, and best of luck!

Margit

Answers (0)