Aurelia CLI Project with Cordova

I have an Aurelia project that was created a while back using version 0.32.0 of the CLI and I now need to build it as an iOS app with Cordova. When running it on an iOS device, only a blank white screen is displayed. Web Inspector shows “An error occurred trying to load the resource” for all 3 resources referenced in my index.html:

 cordova.js
 fontawesome-all.js
 vendor-bundle.js

As expected, I get the same errors when trying to open index.html directly in a web browser on my Mac without running a local web server (like with au run), so I assume that’s the problem in the Cordova app.

Is there a way to get this project to work correctly in a Cordova build?

1 Like

It’s been so long since I worked on the project that I forgot it uses PushState. Removing it solved the issue.

2 Likes