Closed efremsternbach closed 8 months ago
It's hard to find documentation on commandline options but I was able to generate the project using only commandline options. Please provide some documentation for this as the "automated" script still doesn't work
This cropped up a few months ago, but it's inconsistent and doesn't appear timed with a change on the generator code or version of yo (note that yo controls the display of options and the selection). We haven't been able to figure out why it hangs.
You work around this by simple pressing enter on the keyboard . . . the question will repeat itself and you will be able to select using the arrow keys and continue through and generate the project.
Seems to work in WSL 2 tho
EDIT: Current workaround:
Generate project in WSL2 (or probably any linux based OS)
Copy generated files to win11 env
Run there
use full command
yo office --projectType react --name "WordAddIn" --host word --ts true
https://github.com/OfficeDev/generator-office
I get the same problem on the JavaScript/TypeScript choice. I've found that if I press Return once, the arrow keys work and I can select either language.
Expected behavior
The generator script should allow me to choose my options before generating the project
Current behavior
When running 'yo office' the arrow keys work to select the project type but for the next item (JavaScript/TypeScript) the arrow keys no longer work. I get the same behavior in all versions of Powerscript and also in the DOS command line.
The fact that the arrow keys work for some options but not for others indicates a bug to me.
Also please give us the option of typing in a number or something else to determine our choice of options. Since the arrow keys don't work, I'm completely stuck. Not sure if the problem is in yo or your own code but the problem makes your code unusable for new projects
Steps to Reproduce
run yo office
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.