ionic-team / ionic-team/ionic-cli
ionic generate throws error when specified --no-module option
- Lingua principale
- TypeScript
- Stelle
- 2k
- Fork
- 682
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by tracing the generate command's handling of --no-module and how it forwards --module=false to Angular's generator. Reproduce the command on Windows and verify that component generation succeeds without treating false as a file path.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100