ionic-team / ionic-team/ionic-framework

bug: angular, ssr does not detect contentId property

Đang mở
#21,671 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
package: angular type: bug
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

# Bug Report

In angular SSR i am having this error:
![image](https://user-images.githubusercontent.com/6820634/86492246-c0aefd80-bd6d-11ea-85a5-9d85f33771db.png)

**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](https://user-images.githubusercontent.com/6820634/86492342-24d1c180-bd6e-11ea-8f09-a2120bddec9e.png)

**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 :)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.