Cordova.js not found when acessing www/index.html

I need to deploy my app to run in the browser.

When I open the www/index.html I get this error in the console:

GET file:///C:/MyProject/Frontend/www/cordova.js net::ERR_FILE_NOT_FOUND error

How could I solve this error?

If you are deploying to a browser, then you actually don’t need that library. Comment it out of the index.html file. Cordova will not run in a traditional browser, so it is not needed.

2 Likes

What if i want to deploy it in the android device?

Then when you compile your Ionic App into an Android APK, it will be there and the ‘error’ will not occur.

1 Like