Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot select Typescript #800

Closed
crgarcia12 opened this issue Dec 20, 2023 · 2 comments
Closed

Cannot select Typescript #800

crgarcia12 opened this issue Dec 20, 2023 · 2 comments

Comments

@crgarcia12
Copy link

crgarcia12 commented Dec 20, 2023

Prerequisites

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

  • [ X ] I am running the latest version of Node and the tools
  • [ X ] I checked the documentation and found no answer
  • [ X ] I checked to make sure that this issue has not already been filed

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.

  • Operating System: Windows 11
  • Node version: v18.19.0
  • Office version: latest
  • Tool version: 5.0.0

Failure Logs

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

@millerds
Copy link
Contributor

millerds commented Jan 2, 2024

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.

@millerds millerds closed this as completed Jan 2, 2024
@akrantz
Copy link
Collaborator

akrantz commented Jan 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants