Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic push: web client incorrectly installs

$
0
0

I have exactly the same problem. When I was following the tutorial I installed ionic platform web client and because I had a customized file structure on the beginning it didn't worked (I got the error ERROR: { [Error: ENOENT, open './www/js/app.js'] errno: -2, code: 'ENOENT', path: './www/js/app.js' }
Is your app declaration contained in 'app.js'?
and also the error that ionic.io.bundle.min.js is missing.

So I removed the platform, rearranged my file structure so that the app.js is on it's original location and reinstalled the web client platform. The error ERROR: { [Error: ENOENT, open './www/js/app.js'] errno: -2, code: 'ENOENT', path: './www/js/app.js' }
Is your app declaration contained in 'app.js'?
dissapeared, but the missing ionic.bundle error was still present.

I manually edited the line that was automatically added on the install, from

<script src="lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js"></script>

to <script src="assets/lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js"></script>.

Ionic seems to recognize the file now and load it, however now I got the error "Cannot read property 'get' of undefined" on line 2.

Help please!


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>