Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: Init i18n in Component.js

$
0
0

Thanks. That helps.

 

I'm wondering now why ui5 is trying to load Component-preload.js 404 (Not Found) in the project root. But it doesn't exist, so I am getting this error.

 

In the index.html I am defining the component like this:

<script>

sap.ui.localResources("project");

new sap.ui.core.ComponentContainer({

name : "project"

}).placeAt("content");

</script>

 

project stands for the root folder, maybe this is the problem?

 

I am also using sap.ui.localResources("project"); to set the right folder structure. Without it the app doesn't work at all. I am testing this right now locally with eclipse and the ui addon. The github is using sap.ui.demo... as structure.

 

For example when I'm declaring the component it looks like this:

jQuery.sap.declare("project.Component");


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>