Side Menu issue after upgrading to Beta 11 (Ionic2)
Hello guys,
Earlier I created a simple project in ionic2 beta-10 version. In beta-10 side menu working properly.
But today I upgraded my project to beta 11 the same code for Side Menu not working. The Navigation drawer from the left side is not working. My most of the navigation is depend upon side-menu in current project.
When I click on navigation drawer button (i.e. three horizontal lines icon) at the upper-left side of the navigation bar, nothing happens. Also if I drag from left to right on the screen, side menu is not opening.
The side menu is not opening on iPad and ionic serve (i.e. browser) too..
If anyone having such problem after upgrading to beta-11.
Anyone know the solution for this??
Related issue created as topic on ionic forum, below is link for reference
https://forum.ionicframework.com/t/side-menu-issue-after-upgrading-to-beta-11/59865
Thanks in advance.
Related to #7586
Hello @vaibsVB are you trying to use the sidemenu from a modal? Thanks for using Ionic!
@jgw96 do you have an actual plunker template for beta11?
@mpaland not yet, unfortunately we have ran into some issues involving npmcdn that i am currently working on resolving. Sorry for any hassle this causes.
@jgw96 Thanks. Hello justin,
actually in my case I'm not used sidemenu from a modal.
My project consists of pure side menu example.
It works fine with ionic2 beta-10. I created this using sidemenu starter template.
But after up-gradation to beta-11 referring to this link https://github.com/driftyco/ionic/blob/master/CHANGELOG.md#200-beta11-2016-08-05.
But after upgradation to beta-11 side menu is not working.
Sorry for little english if you may get confused with my issue and mpaland's (Marco Paland) issue.
But in general we both are facing kind of similar issue.
Thanks in advance.
Hello @vaibsVB ! Your english is perfectly fine! Unfortunately, I am having an issue reproducing this issue. Would you mind trying a fresh starter app by running ionic start test-app sidemenu --v2 and trying it? Thanks!
Thanks Justin for saying perfect English :) Unfortunately, it's not so good. :)
Coming to issue, currently, I'm trying to find why it is happening with sidemenu in beta-11. Shortly I will create a new starter with side-menu starter. :+1:
Thanks for the reply. Regards.
@jgw96 Hi Justin,
As you said, I thought to create a fresh project with sidemenu.
But while creating a fresh project there is issue with Ionic CLI.. I am providing log..
$ ionic start demoApp sidemenu --v2 --ts Creating Ionic app in folder /Users/bista-mac/Documents/demoApp based on sidemenu project Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip [=============================] 100% 0.0s Downloading: https://github.com/driftyco/ionic2-starter-sidemenu/archive/master.zip [=============================] 100% 0.0s Installing npm packages... Error with start undefined Error Initializing app: There was an error with the spawned command: npminstall There was an error with the spawned command: npminstall Caught exception: undefined
I don't know what is happened with my CLI.
I'm sharing my ionic info with you.
$ ionic info
Your system information:
Cordova CLI: 6.2.0 Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v4.2.4 Xcode version: Xcode 7.3.1 Build version 7D1014
with CLI version : 2.0.0-beta.32 previously I created sidemenu project and it was performing well so far.
Kindly look into this and provide some solutions in order to make my CLI stable.
Thank you.
I have the same problem,too pls help with it?
@vaibsVB Would you mind updating your ionic cli by running sudo npm install ionic -g? The latest version is 2.0.0-beta.36. Thanks!
I tried your command i.e. sudo npm install ionic -g
but now my ionic info shows different information about ionic CLI
$ ionic info
Your system information:
Cordova CLI: 6.2.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic CLI Version: 1.7.16 Ionic App Lib Version: 0.7.3 OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Node Version: v4.0.0
seems it updated the version of ionic 1
Hello @vaibsVB , sorry that is my fault. The command should be sudo npm install ionic@beta -g. Very sorry about that.
It's fine justin.. Actuly I also did the mistake by direct copy paste the command suggested by you without any thinking.. :)
After posting a reply I got to know that I inputted command for ionic 1..
So I inserted new command with this @beta added.. and now it is updated to 2.0.0-beta.36.
Thanks for suggested to upgrade to 2.0.0-beta.36.
Will update you, if I found any difficulty further.
Thank you.
No problem! Are you able to reproduce the issue with a sidemenu starter?
Will check for sidemenu starter issue if in case I found it with this updated CLI and let you know.
Thank you.
Hi @jgw96,
I have updated to Ionic CLI Version: 2.0.0-beta.32 and Ionic Framework Version: 2.0.0-beta.11 as per your guidance. Now my sidemenu is toggling on clicking on toogle button present at top-left navigation bar.
But the thing is when the sidemenu is opened and I clicked anywhere on the screen (except navigation drawer) the navigation drawer is not going to close.
Few times it takes 5-7 seconds to close the navigation drawer after tap on the screen.
Hello @vaibsVB ! Glad to hear that we are making progress! Quick question, what device are you testing on when you get this issue? Unfortunately i cant seem to reproduce this with any of my sidemenu apps. Thanks!
It's Apple iPad Air.
I'm not able to create snapshot/screen video recording to produce it.
Even though I found that on tap of toggle icon(present at top-left corner on navigation bar) to close navigation drawer it will take time. On browser it works perfectly fine.
Also In beta-10 it was working well.
But now it takes much time to close navigation drawer in beta-11.
Hello! Would you mind trying our conference demo app https://github.com/driftyco/ionic-conference-app and seeing if you can repro the issue their too? Thanks!
I'm seeing the same issue. We have an application that we started based on the ionic-conference-app and have been upgrading as each beta is released.
What appears to be happening is that the root NavController isn't being retained. If I have my rootPage call
NavController.setRoot(), the menu continues to work.
However, if I present a Modal, and from that Modal do a NavController.setRoot(), the menu appears to be lost. I'm guessing this all retains on a 2nd navigation context since the Modal presents itself now.
//Further issues with sidemenu Additonally, if the menu is open, and I click on the main page to have it close, it is delayed closing, and then anytime I click on the main page again, the menu drawer is re-opened. Until I use the slide motion to close the menu, all clicks on the page will just toggle the menu.