plopjs / plop

Consistency Made Simple
http://plopjs.com
MIT License
7.12k stars 277 forks source link

TypeScript - inquirer has no default export. #373

Closed Mrlilili closed 1 year ago

Mrlilili commented 1 year ago

node_modules/.pnpm/node-plop@0.31.1/node_modules/node-plop/types/index.d.ts:1:8 - error TS1192: Module '"/Users/Aaron/study/plop-tut/node_modules/.pnpm/@types+inquirer@8.2.6/node_modules/@types/inquirer/index"' has no default export.

1 import inquirer from "inquirer";
         ~~~~~~~~

Found 1 error in node_modules/.pnpm/node-plop@0.31.1/node_modules/node-plop/types/index.d.ts:1

 ELIFECYCLE  Command failed with exit code 2.
crutchcorn commented 1 year ago

This should be solved as of Plop 4.0: https://github.com/plopjs/plop/releases/tag/plop%404.0.0