question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot start my app after upgrading to 2.2

See original GitHub issue

From @tomylee001001 on August 12, 2016 15:7

Hi , i upgraded the tns-core-modules to 2.2 and nativescript-angular 0.3 but after upgrading my apps login screen opens but when i click the login button i get the following error.

com.tns.NativeScriptException: Calling js method onClick failed

EXCEPTION: Error in pages/login/login.html:6:49 ORIGINAL EXCEPTION: Error: not implemented ORIGINAL STACKTRACE: Error: not implemented at NativeScriptDomAdapter.Parse5DomAdapter.getCookie (/data/data/org.nativescript.platformtest/files/app/tns_modules/@angular/platform-server/src/parse5_adapter.js:619:68) at CookieXSRFStrategy.configureRequest (/data/data/org.nativescript.platformtest/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:150:82) at XHRBackend.createConnection (/data/data/org.nativescript.platformtest/files/app/tns_modules/@angular/http/src/backends/xhr_backend.js:165:28) at httpRequest (/data/data/org.nativescript.platformtest/files/app/tns_modules/@angular/http/src/http.js:22:20) at Http.post (/data/data/org.nativescript.platformtest/files/app/tns_modules/@angular/http/src/http.js:78:16) at UserService.login (/data/data/org.nativescript.platformtest/files/app/pages/shared/user/user_service.js

My login html

<StackLayout #container> <Image src="res://id_logo" stretch="none" horizontalAlignment="center"></Image> <TextField hint=“E-Posta” keyboardType=“email” [(ngModel)]=“user.email” autocorrect=“false” autocapitalizationType=“none”></TextField> <TextField hint=“Şifre” secure=“true” [(ngModel)]=“user.password”></TextField>

  <Button text="Giriş" class="submit-button" (tap)="submit()"></Button>

</StackLayout>

and my codes for submit

submit()
{
  if (!this.user.isValidEmail()) {
    alert("Enter a valid email address.");
    return;
  }
  this._userService.login(this.user)
.subscribe(
  () =>
  {
    console.log(Config.apiUrl);
    console.log("|"+Config.user_.id+"|");
  //alert("Giriş işlemi başarılı");
  this._router.navigate(["/boardlist"]);
  }

  ,
  (error) => alert("Giriş işlemi başarısız."+error)
);
}

i had no problem before the upgrade.

Copied from original issue: NativeScript/NativeScript#2575

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jolee11commented, Aug 13, 2016

In main.ts, I add NS_HTTP_PROVIDERS.

import {NS_HTTP_PROVIDERS} from ‘nativescript-angular/http’; … nativeScriptBootstrap(AppComponent, [NS_HTTP_PROVIDERS, APP_ROUTER_PROVIDERS]);

0reactions
TruckerGcommented, Aug 24, 2016

@tomylee001001: yes it solves the problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Spring Boot app won't start after upgrade from SB 2.2.7 ...
I use Java 8, Spring Boot and Hibernate Search and it looks like the app startup stops at Lucene index initialization.
Read more >
Apps will not load after 2.2 update of ne… - Apple Community
In order to get it working, I have to reboot. Before the update, I did not had this problem. One would think that...
Read more >
Troubleshoot when you can't open the Play Store app on your ...
Troubleshoot when you can't open the Play Store app on your phone. Try the steps below if the Google Play Store app on...
Read more >
uiautomator2: After update 2.2.0 -> 2.7.1 app does not restart ...
The problem. App does not restart any more on driver open. Tried play with AUTO_LAUNCH + DONT_STOP_APP_ON_RESET not helps.
Read more >
Apache 2.2 error occurs after upgrading to OfficeScan 11.0
Windows could not start Apache 2.2 on local computer. Upong checking the error on the event viewer, the following appears: The Apache service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found