Start a new topic
Answered

Angular2 cli Issue

Hi,

I have tried using the Angular CLI to create a project with the Kinvey angular 2 sdk but have run into issues with components not loading correctly. I have to refresh the page on every router.navigate call for anything to work. I have attached the project which is based of the angular2 starter project (client config not included). Could it be the angular cli project default packages (zone etc.) are incompatible with kinvey sdk?

zip

Best Answer

Michael,


There seems to be a bug in routing mechanisms in Angular and not in the Kinvey SDK.

Can you please check the 'angular router' version? Please try using v4.1.3 and let me know the results.


Thanks,

Pranav


Michael,

Thanks for providing sample project. I have few initial questions for you :
  1. What version of the Angular SDK you are using?
  2. What version of the Kinvey CLI you are using?
  3. Can you please elaborate on "components not loading" issue? If you could send a screenshot of the issue that would be great.

Thanks,

Pranav

Hi Pranav,

  1. Angular version 4, but version 1.2.7 for the cli tool (see package.json)
  2. Kinvey 3.5.0, but i have also tested the latest version with the same issue.
  3. See below for screenshots. The 1st one is log in screen using Augury you can see the login component is loaded. The 2nd screenshot shows the components loaded after logging in, as you can see it hasn't loaded the navbar or datastore components; I should also note that none of the logic works such as the buttons etc. The 3rd screenshot show the components loaded correctly after a browser refresh, here buttons etc are working. The 4th screenshot shows the components loaded after logging out, it should show the same components as the first screenshot. Again none of the logic works, button/link clicks etc. This is resolved after doing a browser refresh.

image

image

image





image


Hope this is helpful! As the angular cli is the status quo for creating/maintaining angular projects any assistance would be greatly appreciated. 


Is there any update on this?

I think my problem is related to this issue, however changing the import statements as suggested does not resolve this issue.

Is there any update on this? I am halted at the moment.

Michael,


You are already discussing the problem with Thomas here. Were you able to test the example app created by Thomas? Can you please share your results here so that Thomas could help you further?


Also, can you please upgrade to the latest Kinvey SDK v3.8.1?


Thanks,

Pranav

Thanks Pranav,


Unfortunately I have not heard anything more from Thomas. Is this something you can assist with?

Could I get some assistance please?

Michael,

I will discuss this internally today and get back to you asap.

Thanks,
Pranav

 

Thanks Pranav, I appreciate it.
Hey Michael,

Engineering is working on Angular2 issues and trying to get a new release out as soon as possible. Will keep you updated on the progress.

Thanks,
Pranav

 

Thanks Pranav I really appreciate the assistance.

Hi Pranav, I have been working with Thomas on this but he appears too busy to respond. I really need assistance in getting this resolved.

Michael,

I will ping Thomas once again and let you know.

Thanks,
Pranav

 

Login or Signup to post a comment