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

Facing Issue with Using in TypeScript Project, #8

Open
muhammadshahbaz08 opened this issue Dec 18, 2023 · 2 comments
Open

Facing Issue with Using in TypeScript Project, #8

muhammadshahbaz08 opened this issue Dec 18, 2023 · 2 comments

Comments

@muhammadshahbaz08
Copy link

Respected @haversnail,

I am Using this library with Inquire in my Type Script Project But, Getting Some Error's. Un-able to find its @types/inquirer-date-prompt & its any resource for Type Script Project.

I'mFacing Module has no default export Error in my tsc file .
image

My Dependecies in Pacage.json :

  "dependencies": {
    "@types/inquirer": "^9.0.7",
    "chalk": "^5.3.0",
    "inquirer": "^9.2.12",
    "inquirer-date-prompt": "^3.0.0"
 }
@d8n1z
Copy link

d8n1z commented Feb 5, 2024

+1

@es50678
Copy link

es50678 commented Apr 23, 2024

+1 same issue.

Were you able to work around it somehow?

UPDATE: was able to workaround by doing the following:

// src/@types/inquirer-date-prompt.d.ts
declare module 'inquirer-date-prompt' {
  import inquirer from 'inquirer';
  const DatePrompt: inquirer.prompts.PromptConstructor;
  export default DatePrompt;
}

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

3 participants