Angular-cli: Choosing stylesheet format in interactive mode skips options

Created on 12 Feb 2019  Β·  11Comments  Β·  Source: angular/angular-cli

🐞 Bug report

Command (mark with an x)


- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?


Yes, the previous version in which this bug was not present was: ....
I don't know if this was working in previous versions or not

Description

A clear and concise description of the problem...
When I run the command ng new angular-app --interactive, it first shows whether I want to add Angular routing. This is working properly. However, the next question asks me which stylesheet format I would like to use, and this is experiencing the problem.
This bug is occuring in version 7.3.1

πŸ”¬ Minimal Reproduction

  1. run ng new angular-app --interactive. The question The prompt "Would you like to add Angular routing?" appears
  2. entery y to indicate you want Angular routing. The prompt "Which stylesheet format would you like to use?" appears with these options in order:

The selector is initially on CSS

  1. Press the down arrow.

Expected: The selector moves to the Sass option
Actual: The selector moves to the Less option

πŸ”₯ Exception or Error





🌍 Your Environment




ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 7.3.1
Node: 11.9.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.1
@angular-devkit/core         7.3.1
@angular-devkit/schematics   7.3.1
@schematics/angular          7.3.1
@schematics/update           0.13.1
rxjs                         6.3.3
typescript                   3.2.4

Anything else relevant?

more info

Most helpful comment

@robertIsaac I can't speak for your specific console setup, but the options in general don't show up the the console does not support interactivity.

In my setup, the options don't work with ConEmu+gitbash, but they work on the VSCode integrated terminal with gitbash.

All 11 comments

Hi, which terminal are you using?

This was occuring on both Windows Powershell and the Windows Command Prompt. It doesn't seem to be an issue in Linux, however.

@CameronEzraJones, unfortunately I am unable to replicate this from my end. Both using PowerShell and CMD

@filipesilva can you give it a shot yourself please?

Tried it myself with gitbash and couldn't see it.

this happens with me too in powershell/cmd
in git bash it doesn't ask for routing/style

PS C:\Users\rober> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17763  316
PS C:\Users\rober\ng7> node -v
v11.9.0
PS C:\Users\rober\ng7> npm -v
6.5.0
PS C:\Users\rober\ng7> ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 7.3.1
Node: 11.9.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.13.1
@angular-devkit/core         7.3.1
@angular-devkit/schematics   7.3.1
@schematics/angular          7.3.1
@schematics/update           0.13.1
rxjs                         6.3.3
typescript                   3.2.4

PS C:\Users\rober\ng7> ng new testnew
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use?
  CSS
  Sass   [ http://sass-lang.com   ]
> Less   [ http://lesscss.org     ]
  Stylus [ http://stylus-lang.com ]

windows specifications
Edition: Windows 10 Pro
Version: 1809
OS build: 17763.316

This may be an issue with Node.js itself. Can you try with either 10.15.3 or 11.11.0?

This may be an issue with Node.js itself. Can you try with either 10.15.3 or 11.11.0?

works with me after updating to node 11.11.0

i have a question if someone can nelp
why git bash isn't giving the interactive questions when running ng new angular-app --interactive?

@robertIsaac I can't speak for your specific console setup, but the options in general don't show up the the console does not support interactivity.

In my setup, the options don't work with ConEmu+gitbash, but they work on the VSCode integrated terminal with gitbash.

Closing as this appears to be an issue with older versions of Node.js and not the CLI.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gotschmarcel picture gotschmarcel  Β·  3Comments

NCC1701M picture NCC1701M  Β·  3Comments

hartjo picture hartjo  Β·  3Comments

daBishMan picture daBishMan  Β·  3Comments

JanStureNielsen picture JanStureNielsen  Β·  3Comments