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

Shift+Enter throws error #32

Open
thiccaxe opened this issue May 29, 2024 · 2 comments · May be fixed by #33
Open

Shift+Enter throws error #32

thiccaxe opened this issue May 29, 2024 · 2 comments · May be fixed by #33

Comments

@thiccaxe
Copy link

I added a console.log(key) in action.js

 astro   Launch sequence initiated.

╭─────╮  Houston:
│ ◠ ◡ ◠  Welcome to  astro  v4.9.2, thiccaxe!
╰─────╯
{
  sequence: '\r',
  name: 'return',

   dir   Where should we create your new project?
         ./satellite-sphere{
  sequence: '\r',
  name: 'return',
  ctrl: false,
  meta: false,

   dir   Where should we create your new project?
         ./satellite-sphere

  tmpl   How would you like to start your new project?
         ● Include sample files (recommended)
         ○ Use blog template 
         ○ Empty {
  sequence: '\x1BOM',
  name: 'undefined',
  ctrl: false,
  meta: false,
  shift: false,
  code: 'OM'
}
node:internal/readline/emitKeypressEvents:74
            throw err;
            ^

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at SelectPrompt._ (file:///home/thcx/Projects/ghangurde/node_modules/.pnpm/@[email protected]/node_modules/@astrojs/cli-kit/dist/prompt/elements/select.js:59:26)
    at ReadStream.keypress (file:///home/thcx/Projects/ghangurde/node_modules/.pnpm/@[email protected]/node_modules/@astrojs/cli-kit/dist/prompt/elements/prompt.js:29:32)
    at ReadStream.emit (node:events:519:28)
    at emitKeys (node:internal/readline/utils:371:14)
    at emitKeys.next (<anonymous>)
    at ReadStream.onData (node:internal/readline/emitKeypressEvents:64:36)
    at ReadStream.emit (node:events:531:35)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)

Node.js v20.13.1

@thiccaxe thiccaxe linked a pull request May 29, 2024 that will close this issue
@Sainan
Copy link

Sainan commented Oct 17, 2024

Just had the same thing pressing [Insert] on Windows

@thiccaxe
Copy link
Author

Probably want something a bit more robust than the linked PR then. what do other projects do?

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

Successfully merging a pull request may close this issue.

2 participants