Skip to content

3.13.0 (latest) fails to run with MODULE_NOT_FOUND #368

Closed
@MikeMcC399

Description

@MikeMcC399

Current behavior

After updating from markdown-link-check@3.12.2 to markdown-link-check@3.13.0 (latest), markdown-link-check fails to run.

The failure occurs independently of the Node.js version (v18.20.4, v20.18.0, v22.11.0 & v23.1.0)

Expected behavior

markdown-link-check should run and not fail.

Steps to reproduce

Component Version
Ubuntu 24.04.1 LTS
Node.js 22.11.0
markdown-link-check 3.13.0
mkdir markdown-link-check-test
cd markdown-link-check-test
npm init -y
npm install markdown-link-check@latest
touch test.md
npx markdown-link-check test.md

Logs

mike@ubuntu-24:~/github/markdown-link-check-test$ npx markdown-link-check test.md
node:internal/modules/cjs/loader:1249
  const err = new Error(message);
              ^

Error: Cannot find module '/home/mike/github/markdown-link-check-test/reporters/default.js'
Require stack:
- /home/mike/github/markdown-link-check-test/node_modules/markdown-link-check/markdown-link-check
    at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at getInputs (/home/mike/github/markdown-link-check-test/node_modules/markdown-link-check/markdown-link-check:154:61)
    at main (/home/mike/github/markdown-link-check-test/node_modules/markdown-link-check/markdown-link-check:251:20) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/mike/github/markdown-link-check-test/node_modules/markdown-link-check/markdown-link-check'
  ]
}

Node.js v22.11.0

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