mokkabonna / inquirer-autocomplete-prompt

Autocomplete prompt for inquirer
ISC License
354 stars 82 forks source link

Need rename `lib` to `src` inquirer@9.3.2 #159

Closed deot closed 4 months ago

deot commented 4 months ago

https://github.com/SBoudrias/Inquirer.js/pull/1449 Renames:

https://github.com/mokkabonna/inquirer-autocomplete-prompt/blob/55a41fddf02dd0dbc9f32ba77878b191cc303c5a/packages/inquirer-autocomplete-prompt/index.js#L9

Choppel commented 4 months ago

As mentioned in issue #1456 of inquirer, the imports do not work as expected anymore, because the internal file structure has changed. @SBoudrias states, that the way of importing is not the one that is documented.

Something like

import inquirer from 'inquirer'; 

type Base = inquirer.prompts.PromptBase;

should be correct.

SySagar commented 4 months ago

Have been facing this issue in my js-based-terminal since yesterday. Traced back to this repo to know the real issue. Can you suggest what should we do for now? is there any alternative?

Choppel commented 4 months ago

Downgrading and freezing inquirer to 9.3.1 works for me.

"dependencies": {
  "inquirer": "9.3.1"
}
SBoudrias commented 4 months ago

inquirer@9.3.3 should have fixed the issues with plugins 🤞🏻