-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Unable to run create-ink-app --typescript project #435
Comments
Getting similar issues but about |
See sindresorhus/meow#172 (comment) I created a PR for fixing this issue: vadimdemedes/create-ink-app#14. |
When is the PR going to be merged? |
Just ran into this issue myself, for the record. Sorry if I'm spamming or something. |
Anything I can do to help move this along? |
Edit Part of this can be fixed after running importMeta:import.meta, to #!/usr/bin/env node
import React from 'react';
import {render} from 'ink';
import meow from 'meow';
import App from './ui';
const cli = meow(`
Usage
$ myink
Options
--name Your name
Examples
$ myink --name=Jane
Hello, Jane
`, {
importMeta:import.meta,
flags: {
name: {
type: 'string'
}
}
});
render(<App name={cli.flags.name}/>); but the build will still fail due to esm module interactions at least on nodev14, 16 might support it. Reccomend following Litomore's advice below. |
I sent a message to @vadimdemedes through Twitter and email. And asking Before the problem is solved, for CommonJS modules you can apply my changes according to this PR in the generated pakcage.json and tsconfig.json, then rerun For CommonJS modulesIn
In
For ESMRefer to |
Fix released in v2.1.1 thanks to @LitoMore! |
Following the getting started guide:
Using node version 14.16.1 lts
The text was updated successfully, but these errors were encountered: