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

Support Node 16 module resolution #130

Open
roydukkey opened this issue Feb 18, 2023 · 1 comment
Open

Support Node 16 module resolution #130

roydukkey opened this issue Feb 18, 2023 · 1 comment

Comments

@roydukkey
Copy link

Add "module": "node16", "moduleResolution": "node16" to your tsconfig.json.

source: Pure ESM package

Making the desired changes to my project for Node 16, results in the following error:

error TS2344: Type 'typeof import("/xxx/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/build/index")' does not satisfy the constraint '(...args: any) => any'.
  Type 'typeof import("/xxx/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/build/index")' provides no match for the signature '(...args: any): any'.

108 function descriptionList (ui: ReturnType<typeof cliui>, items: Descriptions): void {
@shadowspawn
Copy link
Member

I was not able to reproduce this. Do you have a small example file and tsconfig.js, or link to a project?

(However, the underlying issue may be the accidental inclusion of a type definition file in cliui package: #132 (comment) )

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

No branches or pull requests

2 participants