-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Context
debian 12/bookworm mite
mite 1.11.0
Node.js v18.19.0
Description
Unable to create new task/tracker with the interactive dialog.
Expected Behavior
When no arguments or just the "note" is given mite new asks for more details of the time-entry that should be created. Project, service and duration can be entered in an interactive survey.
Current Behavior
mite new
/usr/local/lib/node_modules/mite-cli/source/mite-new.js:5
const inquirer = require('inquirer');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/mite-cli/node_modules/inquirer/lib/inquirer.js from /usr/local/lib/node_modules/mite-cli/source/mite-new.js not supported.
Instead change the require of inquirer.js in /usr/local/lib/node_modules/mite-cli/source/mite-new.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/usr/local/lib/node_modules/mite-cli/source/mite-new.js:5:18) {
code: 'ERR_REQUIRE_ESM'
}