OfficeDev / generator-office

Yeoman generator for building Microsoft Office related projects.
https://www.npmjs.com/package/generator-office
MIT License
815 stars 207 forks source link

Cannot select Typescript #800

Closed crgarcia12 closed 6 months ago

crgarcia12 commented 6 months ago

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

Expected behavior

By pushing the down key, I will be able to select typescript

Current behavior

I cannot select Typescript, I press the Down, Up, Right, Tab keys... none of them work. I have the same behavior in two computers (laptop + Azure VM) If I hit enter, then it creates the project in Javascript

image

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

> npm install -g yo generator-office
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
changed 1257 packages in 49s
> yo office

     _-----_     ╭──────────────────────────╮
    |       |    │   Welcome to the Office  │
    |--(o)--|    │   Add-in generator, by   │
   `---------´   │ @OfficeDev! Let's create │
    ( _´U`_ )    │    a project together!   │
    /___A___\   /╰──────────────────────────╯
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

> ? Choose a project type: Office Add-in Task Pane project using React framework
> ? Choose a script type: (Use arrow keys)
❯ JavaScript
  TypeScript

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets, screenshots or code samples here.

millerds commented 6 months ago

This is a known issue. We haven't been able to determine the source of the problem as it happens when using an imported module, doesn't happen 100% of the time (though it appears consistent frequently), and isn't always on this question. The work around is to simple press enter once and then question will repeat itself and you should be able to select a value.

akrantz commented 6 months ago

another workaround is to add --ts as a command line argument, e.g. run: yo office --ts.