-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Empty ionic app crashes on windows 8.1 after start. #2965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I`m mistaken. Windows 8 -> Windows 8.1 |
Another mistake, i build with: ionic build windows8 |
I create archive from my Windows App folder: https://drive.google.com/file/d/0B28AXjYMDNZsLWlwd3Q1SGpBd00/view?usp=sharing When i run this app from browser i have error:
chrome:
|
More verbose:
|
Do you get any other js errors when running the app? I found there were a few random js errors that stopped my app from running. |
Ups... js errors that i post above occurs because i commented out @dkarzon |
Are you running it from Visual Studio? If so you should just be able to debug it and it will show you the error. |
No, i run it as others metro apps. Ok, i will try to debug it from visual studio. Thank you. |
My app crashes on this code:
This is security error: http://msdn.microsoft.com/en-us/library/windows/apps/hh849625.aspx Also i try to use ng-csp directive, but angular says that module 'ngLocale' is not available. What should i do? |
related to angular/angular.js#1853 |
Yes that is the problem that winstore-compat.js fixes. Include it in your project and it will fix this for you https://github.com/MsopenTech/winstore-jscompat |
After including winstore-compat.js security exception was disappear. But now angular says that module 'ngLocale' is not available, in browser there are no such error. I don`t have much experience with angular. I'm sorry if this is a noob question. |
There is strange error with modules. If i include my 'starter' module in separate js file, then angular does not see it (. <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<!-- compiled css output -->
<link href="css/ionic.app.css" rel="stylesheet">
<!-- ionic/angularjs js -->
<script src="lib/winstore-jscompat.js"></script>
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="lib/application.js"></script> But when i move my module inside ionic.bundle.js then app starts without error. But it does not work, i see this errors in log: HTML1300: Произошел переход.
File: index.html
Error: [$compile:tplrt] Template for directive 'ionTabNav' must have exactly one root element.
http://errors.angularjs.org/1.3.6/$compile/tplrt?p0=ionTabNav&p1=
at applyDirectivesToNode (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15219:15)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14814:9)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14823:9)
at compile (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14721:7)
at link (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:52117:9)
at invokeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:16025:9)
at nodeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15537:11)
at compositeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:
Error: [$compile:tplrt] Template for directive 'ionTabNav' must have exactly one root element.
http://errors.angularjs.org/1.3.6/$compile/tplrt?p0=ionTabNav&p1=
at applyDirectivesToNode (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15219:15)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14814:9)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14823:9)
at compile (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14721:7)
at link (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:52117:9)
at invokeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:16025:9)
at nodeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15537:11)
at compositeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:
Error: [$compile:tplrt] Template for directive 'ionTabNav' must have exactly one root element.
http://errors.angularjs.org/1.3.6/$compile/tplrt?p0=ionTabNav&p1=
at applyDirectivesToNode (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15219:15)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14814:9)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14823:9)
at compile (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14721:7)
at link (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:52117:9)
at invokeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:16025:9)
at nodeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15537:11)
at compositeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:
Error: [$compile:tplrt] Template for directive 'ionTabNav' must have exactly one root element.
http://errors.angularjs.org/1.3.6/$compile/tplrt?p0=ionTabNav&p1=
at applyDirectivesToNode (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15219:15)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14814:9)
at compileNodes (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14823:9)
at compile (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:14721:7)
at link (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:52117:9)
at invokeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:16025:9)
at nodeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js:15537:11)
at compositeLinkFn (ms-appx://8958ccc0-a055-11e4-86f6-3536a2149d08/www/lib/ionic/js/ionic.bundle.js: |
I found good article: https://www.hoessl.eu/2014/12/on-using-the-ionic-framework-for-windows-phone-8-1-apps/ I slove all issues thanks to this article. Exception posted above can be fixed with replacing cleansePropertySetter in winstore-jscompat. @dkarzon thank you very much for helping me. Actually launching example app on windows 8.1 is big deal for me. |
👍 Good to hear! |
Thanks, @caiiiycuk ! You've likely saved me countless hours chasing my tail on this! Curious as to why this issue has been closed though... It does seem that this is still an issue - I would think the desired 'out of the box' behavior of an Ionic Windows app would be that it would run without requiring additional manual manipulation of the Ionic generated starter project... As of today (4/30/2015), when generating a starter project and adding Windows as a platform, you're not left with a functional Windows starter app due to either the missing shim (if it is actually 'REQUIRE' to make things work) or due to some other issue in the Ionic project that the shim serves to address (if it's desired by Ionic to not depend on this external lib for base functionality)... Just my 2 cents... Anywhos! Thanks again! PROGRESS!!! |
I continue with the same issue don't work for my ionic app :-\ |
Hi. I'm searching for framework to use with cordova. Before i used Ratchet and cordova to assembly w8 app. This app works fine. Now i want to use ionic. But if i add
ionic.bundle.min.js
to my index.html than app crashes at startup. My index.html:I try to use nightly build and latest beta of ionic, but with both versions app doesn't work.
I build my app with this command:
After that i install app with windows power shell.
App logs from windows event viewer:
The text was updated successfully, but these errors were encountered: