Is your app declaration contained in 'app.js'?


#1

Trying to add the platform webservice to my app, and I keep getting this error:

ERROR:  Error: ENOENT, open './www/js/app.js'
    at Error (native)
Is your app declaration contained in 'app.js'?

I’ve done some research and it looks like I need to force ionic to look at my custom file structure, as opposed to the structure its currently looking for. The flow of my file structure leading to app.js would look like this:

./www/scripts/app.js

How can I either change the build folder from “scripts” to “js”, or change ionic to look for “scripts” instead of “js”? All help would be greatly appreciated, thanks!


#2

I’m having the same issue. Did you find a solution?


#3

Same issue for me.

If I do ionic add ionic-platform-web-client, I have this error in console :

Bower component installed - ionic-platform-web-client
ERROR: Error: ENOENT, open './www/js/app.js’
at Error (native)
Is your app declaration contained in ‘app.js’?
Adding component to index.html
Saved dev_push, writing to ionic.io.bundle.min.js…


#4

Same issue here. Anyone find a solution yet?