Skip to Content
0

sap web idea Component-changes.json can not load

Mar 14, 2017 at 06:46 AM

2k

avatar image

I devolpe the sapui5 programe with sap web ide ,but it happen error.

Such as

2017-03-14 14:16:47.394304 Error: resource form3/Component-changes.json could not be loaded from ./Component-changes.json. Check for 'file not found' or parse errors. Reason: Not Found

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Akhilesh Upadhyay Mar 14, 2017 at 06:53 AM
0

that is notifies for some smart controls or other ui5 controls, that error wont affect any functionality in your app, can be simply avoided. in order to remove this error from console just add an empty Component-changes.json file in the webapp folder.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

hello !

i make a blank Component-changes.json in the webapp folder, but it also happen error.such as

2017-03-20 18:12:27.014790 Error: resource ex2/Component-changes.json could not be loaded from ./Component-changes.json. Check for 'file not found' or parse errors. Reason: SyntaxError: Unexpected end of JSON input -

Uncaught (in promise) Error: resource ex2/Component-changes.json could not be loaded from ./Component-changes.json. Check for 'file not found' or parse errors. Reason: SyntaxError: Unexpected end of JSON input at Object.error (sap-ui-core.js:174) at p (sap-ui-core.js:126) at Object.fireWith [as rejectWith] (sap-ui-core.js:126) at h3 (sap-ui-core.js:126) at XMLHttpRequest.<anonymous> (sap-ui-core.js:126)

0

Since this file is json file and expecting a valid json format (even its blank), So you need to put { } in Component-change.json file then it will work.

I missed out to mentioned this in my above comment, sorry :)

0

thanks! The mistake was solved ,but i don`t clearly know why the error happen. Could you tell me ?

0
Mike Doyle Jul 05, 2017 at 01:40 AM
0

Hi Jingquan, have you enabled the client build? If you do this by adding project type SAPUI5 Client Build you'll get a dist folder when you deploy. Inside will be a Component-changes.json file.

It's a good idea to enable the build because it will reduce the start-up time for your app as there will be fewer source files to download.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Mike - Can you direct me to more information on the "client build" you mentioned in your reply? Is this part of the project settings? I've set the "new build required" flag in my project settings (and I have the dist folder), but I still see the "-changes.json" 404 errors. I don't see the related files in the "dist" folder (even after deploying to the SCP)... And anyway, I thougth the dist folder was only used to deploy the app (to the SCP). BTW - to be on the same page, I'm seeing the errors when I test from WebIDE with a "Fiori Launchpad Sandbox" run configuration.

0

If you see the dist folder then the build is happening. When you run from the SCP portal site (launchpad) it will run from the files in the dist folder. When you run on the "Fiori Launchpad Sandbox" it will ignore the dist folder and run from the web app files. That's why your changes are reflected immediately, without having to deploy/build. Try deploying to the launchpad and running from there. I don't think you'll see the error in the console any more. I try to clean up all the console errors so that the 'real' errors stand out.

0

I don't think that Component-changes.json file is related to the build. Maybe you're confused with the Component-preload.js file.

Perhaps more info on the Component-changes.json file can be found here:
https://help.sap.com/saphelp_uiaddon10/helpdata/en/a8/e55aa2f8bc4127923b20685a6d1621/frameset.htm

Regards,
Michal.

0

Thanks Michal. I thought the Component-changes.json file might be something to do with the flexibility service. It doesn't get created in the build, but the console error does seem to go away. Alternatively it could be something to do with running on the Web IDE Fiori Launchpad Sandbox vs a portal site.

0
Michal Keidar
Jul 06, 2017 at 11:00 AM
0

Perhaps more info on the Component-changes.json file can be found here:

https://help.sap.com/saphelp_uiaddon10/helpdata/en/a8/e55aa2f8bc4127923b20685a6d1621/frameset.htm

Regards,
Michal.

Share
10 |10000 characters needed characters left characters exceeded