question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flags are not working with typescript ^4.1.3

See original GitHub issue

os: windows10 node: v10.15.1 terminal: WSL

const options = {
  flags: {
    rainbow: {
     type: 'boolean',
     alias: 'r'
    }
  }
}

meow(`...`, options)

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
LitoMorecommented, May 9, 2021

The root cause is create-ink-app always using the latest version of meow and @sindresorhus/tsconfig. create-ink-app is using a simple install script to install them without a specific version. By default, you will get the latest version.

Since meow@10.0.0, we moved our package to ESM.

I will help create-ink-app move their package to ESM. It will take some time because there are some blocking dependencies that need to be moved to ESM as well.

Before that, you could downgrade your meow to 9.0.0 or lower manually (just modify your generated code and reinstall dependencies).

Update:
I submitted a quick fix for CommonJS modules.

0reactions
Caryyoncommented, May 6, 2021

Getting something similar using npx create-ink-app Screen Shot 2021-05-05 at 8 22 53 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Flags are not working with typescript ^4.1.3 -
Flags are not working with typescript ^4.1.3. meow. 17 December 2020 Posted by jpgorman. os: windows10 node: v10.15.1 terminal: WSL const options =...
Read more >
Documentation - TypeScript 4.3
TypeScript now actually does the work to prove whether or not each part of a template string can successfully match. You can now...
Read more >
How to solve this problem in Typescript 4.1.3 when you ...
There's something wrong with your configuration and you are trying to run the Typescript code directly that's why you get that syntax error....
Read more >
ts-node-dev - npm
Start using ts-node-dev in your project by running `npm i ts-node-dev`. ... but shares Typescript compilation process between restarts.
Read more >
How to Use TypeScript in a Node.js and Express Project
He's currently an engineer at TypingDNA, working on applying keystroke ... TypeScript is not required, or used, for runtime and is only used ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found