Error [ERR_REQUIRE_ESM] #1270
Unanswered
aureliotechnology
asked this question in
Q&A
Replies: 1 comment
-
Which version of inquirer are you using? Did you try latest v8? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm getting this error when trying to run a nestjs project with the inquirer lib:
./node_modules/@nestjs/cli/node_modules/inquirer/lib/utils/screen-manager.js:4
const wrapAnsi = require('wrap-ansi');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module ./node_modules/wrap-ansi/index.js from ./node_modules/@nestjs/cli/node_modules/inquirer/lib/utils/screen-manager.js not supported.
Instead change the require of index.js in ./node_modules/@nestjs/cli/node_modules/inquirer/lib/utils/screen-manager.js to a dynamic import() which is available in all CommonJS modules.
Can you help me?
Beta Was this translation helpful? Give feedback.
All reactions