Exception on newly created project - both --tsc and --ng
See original GitHub issueFrom @jvzanatta on July 21, 2016 1:29
Hi. I’m having this weird log when create a new project with tns create AppName --ng and then run with tns build android. Same happens if i change --ng for --tsc. Any workarounds?
Thanks in advance.
JS: EXCEPTION: Error: Uncaught (in promise): TypeError: this.page.frame._getNavBarVisible is not a function
JS: STACKTRACE:
JS: Error: Uncaught (in promise): TypeError: this.page.frame._getNavBarVisible is not a function
JS: at resolvePromise (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:496:32)
JS: at /data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:473:14
JS: at ZoneDelegate.invoke (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:281:29)
JS: at Object.NgZoneImpl.inner.inner.fork.onInvoke (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js:46:41)
JS: at ZoneDelegate.invoke (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:280:35)
JS: at Zone.run (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:174:44)
JS: at /data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:529:58
JS: at ZoneDelegate.invokeTask (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:314:38)
JS: at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js:37:41)
JS: at ZoneDelegate.invokeTask (/data/data/org.nativescript.TCCTreino/files/app/tns_modules/zone.js/dist/zone-node.js:313:43)
JS: Unhandled Promise rejection: this.page.frame._getNavBarVisible is not a function ; Zone: angular ; Task: Promise.then ; Value: TypeError: this.page.frame._getNavBarVisible is not a function
JS: Error: Uncaught (in promise): TypeError: this.page.frame._getNavBarVisible is not a function
JS: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
JS: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
JS: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
Copied from original issue: NativeScript/nativescript-cli#1938
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Error on execute ng serve : "An unhandled exception occurred ...
For exemplo, on my project "crud-angular", was run cd crud-angular . Now, on folder contains all project files, run ng serve and be...
Read more >The Ultimate Guide to setting up Node.js with TypeScript and ...
Let's dive in! Table of contents. Project setup; Initialize a new GitHub project; Creating a package.json; Installing TypeScript. Generating a ...
Read more >Common Angular Errors - Programming with Mosh
When creating a new project with Angular CLI, you may receive the following error: 'ng' is not recognized as an internal or external...
Read more >npm ERR! code ELIFECYCLE - MSDN - Microsoft
InvalidOperationException : The NPM script 'start' exited without indicating that the Angular CLI was listening for requests.
Read more >TypeScript tutorial with Visual Studio Code
To compile your TypeScript code, you can open the Integrated Terminal (Ctrl+`) and type tsc helloworld.ts . This will compile and create a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Weird. Mine is
$ tns --version // 2.1.1 $ node -v // 4.4.7 $ npm -v // 3.10.5
I keep getting errors and warnings on even the smallest of modifications. Like if I create a new page with<Page ...>
instead of<GridLayout>
. I’m on Xubuntu btw, which OS are you on?No problem - just let us know if you continue to get errors.
I will close the issue for know - please reopen if needed.