Skip to Content

New Component: Expecting component-preload.js

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

error.PNG (10.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Dec 26, 2013 at 12:01 PM

    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 "




    Add comment
    10|10000 characters needed characters exceeded

  • Dec 26, 2013 at 06:35 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 26, 2013 at 07:01 AM

    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


    Image1.JPG (17.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Dec 26, 2013 at 11:40 PM

    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

    Add comment
    10|10000 characters needed characters exceeded