Failed to load the resource: the server responded with a status of 404 (not found). Ripple.js

Hello, my problem is developing a phonegap application in HTML5 with Visual Studio tools for apache cordova https://www.visualstudio.com/en-us/features/cordova-vs.aspx write error when I debug the application

Ripple :: Environment Warming Up (Earl Gray. Hot. Tea) ripple.js (37,13099)

The synchronous XMLHttpRequest in the main thread is deprecated due to its detrimental effects on the end user. For more help, check out http://xhr.spec.whatwg.org/ . > ripple.js (50,28958)

Failed to load resource: server responded with status 404 (Not found) ripple.js

thank you for your help

+6
source share
3 answers

May be part of the answer: For the second error (not found 404), what worked for me was to copy config.xml to the root path (where is your source code).

For the first error (synchronous XMLHttpRequest , which is not important for the emulation process, but you can see a "clean" console log), just edit ripple.js

 [MAIN_DRIVE]:\Users\[YOUR_USER]\AppData\Roaming\npm\node_modules\ripple-emulator\pkg\hosted 

In the line that the emulator is complaining about, find the xhr request. The change

 xmlHttp.open("GET", utils.appLocation() + fileName, false); 

to

 xmlHttp.open("GET", utils.appLocation() + fileName, true); 

and everything is ready, I hope this helps. These errors are not related.

+4
source

This solution worked for me in two cases. Everything seems to be in order.

By the way: 'root path (where is your source code)': project www folder in VS2015

And the ripple.js file is found in: always for VS2015 as Bjoerg.

+1
source

I was getting a similar error, because my version for npm was at 3.3.6, which has some kind of error. Node and npm update fixed for me:

 npm install npm@3.3.7 -g 

I updated node by simply downloading and installing the latest version from nodejs.org.

0
source

Source: https://habr.com/ru/post/987284/


All Articles