Flags are not working with typescript ^4.1.3
See original GitHub issueos: windows10 node: v10.15.1 terminal: WSL
const options = {
flags: {
rainbow: {
type: 'boolean',
alias: 'r'
}
}
}
meow(`...`, options)
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The root cause is
create-ink-app
always using the latest version ofmeow
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.
Getting something similar using
npx create-ink-app