ionic-team / ionic-team/ionic-framework

bug: angular, ssr does not detect contentId property

未关闭
#21,671 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
package: angular type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。