Skip to content

Unable to create new task/tracker with the interactive dialog. #260

@kai-hier

Description

@kai-hier

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'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions