cancel
Showing results for 
Search instead for 
Did you mean: 

sap web idea Component-changes.json can not load

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

michal_keidar
Active Contributor
0 Kudos

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.

MikeDoyle
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

MikeDoyle
Active Contributor
0 Kudos

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.

michal_keidar
Active Contributor
0 Kudos

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.

MikeDoyle
Active Contributor
0 Kudos

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.

former_member227918
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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)

former_member227918
Active Contributor
0 Kudos

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 🙂

Former Member
0 Kudos

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