cancel
Showing results for 
Search instead for 
Did you mean: 

New Component: Expecting component-preload.js

kammaje_cis
Active Contributor
0 Kudos

Hi friends,

I am trying to create a Component and group my views logically.

I started by creating a folder called components and created three folders there. One each for each component. Then created component.js inside each of them. Coded as per Documentation/AdvancedTopics/Components – SAPUI5 Wiki (TIP CORE User Interface)

Now when I access my application, I get an error

404 not found for  "

/sap/bc/ui5_ui5/sap/ycomponent_poc/components/newAssignmentForm/Component-preload.js

Uncaught TypeError: undefined is not a function "

Waiting for your help.

Krishna

Accepted Solutions (0)

Answers (4)

Answers (4)

kammaje_cis
Active Contributor
0 Kudos

Thanks all.

It was a syntax issue but took long time to figure out.  But finally fixed it.

Syntax errors are tough to spot here.. without support from IDE..

Waiting for Web IDE....

Also, "failed to load component-preload.js" seems to be a harmless error. I still have it eventhough my component works like a charm.

Thanks

Krihsna

Former Member
0 Kudos

Hi All,

I am facing a similar issue , My app is not working at all please help

I have pasted my index.html & component.js code in the below thread.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8022ac87-1f60-3110-5383-fa68a91d7...

Please let me know if you require any other information

Many Thanks

Pandu

former_member193947
Participant
0 Kudos

Hi Pandu,

Did you get your issue resolved ? If yes, can you please put the solution here ?

Best Regards,

Seeker.

Former Member
0 Kudos

Hi Seeker,

I haven't got a complete solution  yet but let us know your problem , we will give try

Cheers

Pandu

surendra_pamidi
Contributor
0 Kudos

Hi Krishna,

The below error is because of syntax error. You might somewhere used wrong syntax. I too also got the same error because of syntax error of UI5 library controls.

Uncaught TypeError: undefined is not a function "




Former Member
0 Kudos

Hi Krishna,

The code which u tried in the following link-

Documentation/AdvancedTopics/Components – SAPUI5 Wiki (TIP CORE User Interface)

There can you please check in the following line.

As there you have to mentioned the correct path.Check where you deployed it and modify that.

Thanks & Regards,

Patralekha Sur

ChandraMahajan
Active Contributor
0 Kudos

Hi,

is it something related to preload bootstrap variant? Please check SAPUI5 SDK - Demo Kit

I am not sure if this will help though.

Regards,

Chandra