ionic-team / ionic-team/ionic-cli
ng build --prod facing many build issues in ionic app while running web ionic app parallely
- 主要語言
- TypeScript
- 星號
- 2k
- 分支
- 682
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Description:**
After running the build command - ng build --prod in the application, getting several issues.which are are not displayed while running the app locally
1/ Importing component more than one module.
2/ Property does not exist
3/ ion-col is not an element
**Steps to Reproduce:**
While running command ng build --prod
**Output:**
**My `ionic info`:**
```
1/ Error: mobile/src/app/modules/features/home/home.page.html:27:5 - error NG8001: 'ion-row' is not a known element:
1. If 'ion-row' is an Angular component, then verify that it is part of this module.
2. If 'ion-row' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
2/ Error: - error TS2339: Property 'value' does not exist on type 'EventTarget'.
(ionChange)="onValueChanged($event.target.value)"
```
**Other Information:**
貢獻指南
研究方向
Start by reproducing `ng build --prod` and inspect `mobile/src/app/modules/features/home/home.page.html` around line 27, where the `ion-row` and event value errors are reported. Compare the production build with the local run and identify the missing project or environment details; done requires a reproducible diagnosis and confirmed resolution of the listed build errors.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, typescript
- 領域
- build-system, cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100