prompts icon indicating copy to clipboard operation
prompts copied to clipboard

Not printing text correctly on windows

Open BernaLang opened this issue 5 years ago • 0 comments

Describe the bug

When i do a prompt request (i've tested the types select and text, happens on both) it displays the text "String.prototype.matchAll":

Captura de ecrã 2020-01-09, às 10 32 15

To Reproduce

Just create a request with this code:

const response = await prompts({
    type: 'text',
    name: 'port',
    message: 'Server Port?',
    initial: 514
});

Expected behavior

It's supposed to show the prompt without the "String.prototype.matchAll".

System

  • OS: Windows 10 Pro
  • Terminal: Powershell and CMD
  • Node version: v10.13.0

Additional context

I'm building a exe with pkg on macOs and running it on windows.

BernaLang avatar Jan 09 '20 10:01 BernaLang