Skip to content

node:internal/modules/cjs/loader:1205 throw new ERR_REQUIRE_ESM(filename, true); #380

@nick814

Description

@nick814

重新安装了青龙 2.17.11
然后报错了
node:internal/modules/cjs/loader:1205
throw new ERR_REQUIRE_ESM(filename, true);
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /ql/data/scripts/Wenmoux_checkbox_master/node_modules/yargs/index.mjs not supported.
Instead change the require of /ql/data/scripts/Wenmoux_checkbox_master/node_modules/yargs/index.mjs to a dynamic import() which is available in all CommonJS modules.
at Object. (/ql/data/scripts/Wenmoux_checkbox_master/checkbox.js:7:15) {
code: 'ERR_REQUIRE_ESM'
}

Node.js v20.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions