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 摘要。