-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
createPromptModule
typing error : No overload matches this call. The last overload gave the following error.0
#1523
Comments
have had same issue all day |
Also having this problem. Using node v18.19.0 and TypeScript. |
Does it work like this? const questions = [
{ type: "input", name: "packageName", message: "tell me package name", default: "template" }] as const; I think what happen is you're sending a type that's too liberal to inquirer, and this then prevents any inference of the return type. The core of the issue with the type you pass in is that Also, it'll work if you put it inline instead of assigning to a variable: prompt([
{ type: "input", name: "packageName", message: "tell me package name", default: "template" }
]); |
Not working for me. |
... so what's the error with that code? |
We released new core types today with |
With
"type": "module"
in package.jsonalthough it works when run but vs code gives ts lint error as below
what is the issue here?
The text was updated successfully, but these errors were encountered: