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

Following the usage instructions results in an error #16

Closed
kamenkolev-shared opened this issue Jul 20, 2021 · 1 comment · Fixed by #28
Closed

Following the usage instructions results in an error #16

kamenkolev-shared opened this issue Jul 20, 2021 · 1 comment · Fixed by #28

Comments

@kamenkolev-shared
Copy link

Following the instructions fails with the following error

`
myUserName@pc MINGW64 /c/work/mainFolder/testing
$ mkdir cli-project
myUserName@pc MINGW64 /c/work/mainFolder/testing
$ cd cli-project/
myUserName@pc MINGW64 /c/work/mainFolder/testing/cli-project
$ npx create-ink-app --typescript
Need to install the following packages:
create-ink-app
Ok to proceed? (y) y
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

√ Copy files
√ Install dependencies
× Link executable
→ Found 1 error.
Error: Command failed: npm run build

cli-project@0.0.0 build
tsc

source/cli.tsx:17:4 - error TS2345: Argument of type '{ flags: { name: { type: "string"; }; }; }' is not assignable to parameter of type 'Options<{ name: { type: "string"; }; }>'.
Property 'importMeta' is missing in type '{ flags: { name: { type: "string"; }; }; }' but required in type 'Options<{ name: { type: "string"; }; }>'.

17 `, {
~
18 flags: {
~~~~~~~~~
...
22 }
~~
23 });
~

node_modules/meow/index.d.ts:33:11
33 readonly importMeta: ImportMeta;
~~~~~~~~~~
'importMeta' is declared here.

Found 1 error.

at makeError (C:\Users\myUserName\AppData\Local\npm-cache\_npx\cc9fa0209c2baa81\node_modules\execa\index.js:174:9)
at C:\Users\myUserName\AppData\Local\npm-cache\_npx\cc9fa0209c2baa81\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Task.task (C:\Users\myUserName\AppData\Local\npm-cache\_npx\cc9fa0209c2baa81\node_modules\create-ink-app\index.js:135:6)

`

Environment: Windows 10, NodeJS 16.5.0

@LitoMore
Copy link
Contributor

LitoMore commented Oct 7, 2021

Fixed in #14.

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