mokkabonna / inquirer-autocomplete-prompt

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

The requested module '@inquirer/type' does not provide an export named 'CancelablePromise' #160

Closed falko-apheris closed 1 month ago

falko-apheris commented 2 months ago

file:///home/falkokrause/Dev/vue-frontend/node_modules/.pnpm/@inquirer+core@3.1.2/node_modules/@inquirer/core/dist/esm/index.mjs:2
import { CancelablePromise } from '@inquirer/type';
         ^^^^^^^^^^^^^^^^^
SyntaxError: The requested module '@inquirer/type' does not provide an export named 'CancelablePromise'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:171:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:254:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:482:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

I have the following dependencies installed

> p why '@inquirer/type'
Legend: production dependency, optional only, dev only

devDependencies:
inquirer-autocomplete-standalone 0.8.1
├─┬ @inquirer/core 3.1.2
│ └── @inquirer/type 1.5.4
└── @inquirer/type 1.5.4
falko-apheris commented 1 month ago

Installing the latest version @inquirer/type@1.5.5 fixes the issue. Fix with pnpm up