ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.07k stars 13.51k forks source link

bug: angular, ssr does not detect contentId property #21671

Open Hugoer opened 4 years ago

Hugoer commented 4 years ago

Bug Report

In angular SSR i am having this error: image

Ionic version: Ionic:

Ionic CLI : 6.10.1 (C:\Users\Hugo\AppData\Roaming\nvm\v12.18.0\node_modules\@ionic\cli) Ionic Framework : @ionic/angular 5.2.3 @angular-devkit/build-angular : 0.1000.1 @angular-devkit/schematics : 9.1.10 @angular/cli : 10.0.1 @ionic/angular-toolkit : 2.2.0

Utility:

cordova-res : not installed native-run : not installed

System:

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


Angular CLI: 10.0.1 Node: 12.18.0 OS: win32 x64

Angular: 10.0.2 ... animations, common, compiler, compiler-cli, core, forms ... language-service, platform-browser, platform-browser-dynamic ... platform-server, router Ivy Workspace:

Package Version

@angular-devkit/architect 0.1000.1 @angular-devkit/build-angular 0.1000.1 @angular-devkit/build-optimizer 0.1000.1 @angular-devkit/build-webpack 0.1000.1 @angular-devkit/core 9.1.10 @angular-devkit/schematics 9.1.10 @angular/cli 10.0.1 @angular/fire 6.0.2 @ngtools/webpack 10.0.1 @nguniversal/builders 10.0.1 @nguniversal/common 10.0.1 @nguniversal/express-engine 10.0.1 @schematics/angular 9.1.10 @schematics/update 0.1000.1 rxjs 6.6.0 typescript 3.9.6 webpack 4.43.0

[ ] 4.x [x] 5.x

Current behavior: I create a new application with ionic cli and do not change anything on app.component.html.

If i use attribute instead of property it works correctly. It works also with "ng serve".

This image is SSR source code with "content-id" instead of "contentId": image

Expected behavior: Use contentId and content-id,

Steps to reproduce:

https://github.com/Hugoer/ionMenuError

npm i 
npm run dev:ssr

i hope it helps, if you need more information, please tell me :)

kulkarni005 commented 3 years ago

Any Update on this ? is it resolved ? i m facing this issue when i try to use Angular SSR - Angular 12

Update : If i use attribute instead of property it works correctly using content-id instead of contentId