Skip to content

bug: ion-menu-button with angular ssr doesn't work properly #21918

Closed

Description

@davidquintard

Ionic version:
[x] **5.3.0

Current behavior:
Ion-menu-button doesn't work properly when using angular ssr

Expected behavior:
ion-menu-button should work properly

Steps to reproduce:

ionic start menu-ssr sidemenu --type angular
cd menu-ssr
ng update @angular/core @angular/cli
npm install @angular/animations
ng add @nguniversal/express-engine
npm install @ionic/angular-server
npm run build:ssr 

If i do 'npm run start' and go to http://localhost:4200 (reduce window to show ion-menu-button), it works fine.
BUT if i do 'npm run serve:ssr' and go to http://localhost:4000 (reduce window to show ion-menu-button), that doesn't work

Other information:

Ionic info:

λ ionic info

Ionic:

   Ionic CLI                     : 6.10.0 (C:\Users\Adolphe\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.3.0
   @angular-devkit/build-angular : 0.1000.4
   @angular-devkit/schematics    : 10.0.4
   @angular/cli                  : 10.0.4
   @ionic/angular-toolkit        : 2.3.0

Cordova:

   Cordova CLI       : 9.0.0 ([email protected])
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res : not installed
   native-run  : 1.0.0

System:

   NodeJS : v12.10.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.10.3
   OS     : Windows 10

Activity

  1. mhartington commented on Aug 14, 2020

    @mhartington
    Contributor
  2. added
    needs: reply
    on Aug 14, 2020
  3. davidquintard commented on Aug 14, 2020

    @davidquintard
    Author
  4. added and removed
    needs: reply
    on Aug 14, 2020
  5. liamdebeasi commented on Aug 14, 2020

    @liamdebeasi
    Contributor

    Can you provide a repo we can use to reproduce the issue? I am not able to reproduce it using a menu starter app.

  6. added
    needs: reply
    on Aug 14, 2020
  7. davidquintard commented on Aug 14, 2020

    @davidquintard
    Author

    Can you provide a repo we can use to reproduce the issue? I am not able to reproduce it using a menu starter app.

    Here it is @liamdebeasi :

    https://github.com/pairmix/menu-ssr.git

    npm run:build
    npm run:serve

    As you can see, the first load, menu is blocked (or disabled).
    But after reload (F5), menu is working.

  8. added and removed
    needs: reply
    on Aug 14, 2020
  9. ionitron-bot commented on Sep 15, 2020

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  10. locked and limited conversation to collaborators on Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions