ionic-team / ionic-team/ionic-cli

ionic generate throws error when specified --no-module option

未關閉
#4,580 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
triage
主要語言
TypeScript
星號
2k
分支
682
PR 合併指標
30 天內沒有已合併 PR

描述

**Description:**

I have installed fresh ionic and tried to run a command to generate a component without module but it threw the following error:

>generate component BootScreen --no-module
ng.cmd generate component BootScreen --module=false --project=app
File false does not exist.
[ERROR] Could not generate component.

**Steps to Reproduce:**

`generate component BootScreen --no-module`

**Output:**

`File false does not exist.`

**My `ionic info`:**

```
Ionic:

Ionic CLI : 6.11.11 (C:\Users\Basheer\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 5.3.5
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3

Capacitor:

Capacitor CLI : 2.4.2
@capacitor/core : 2.4.2

Utility:

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

System:

NodeJS : v12.16.1 (C:\Program Files\nodejs\node.exe)
npm : 6.13.4
OS : Windows 10
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。