cancel
Showing results for 
Search instead for 
Did you mean: 

Component-preload.js issues

omakinen
Participant
0 Kudos

Hi!

I have created a Component-preload.js file for a custom SAPUI5 app using the gulp method. The file is not loaded so I'm wondering...

a) Must I have also a Component.js or some other necessary files in the project? Currently I have only index.html

b) Is the namespace wrong? How to determine the correct namespace of my project?

My Index.html:

https://jsbin.com/hajewimifa/edit?html,output

The project structure in Eclipse:

The Component-preload looks like this:

Accepted Solutions (0)

Answers (2)

Answers (2)

karthikarjun
Active Contributor
0 Kudos

Hi Ossi,

1 . Component-preload need component.js.

Else:

I have some idea, try this:

1. Under module path: don't give view names, because module should point to component.js

2. Use Viewpath property to add views,

3. try to create one metadata, under that add your view name, config, view path....

Thanks,

Karthik A

former_member182372
Active Contributor
0 Kudos

Component-preload is valid only if you have component, not sure it would work with plain views