Skip to content

Fix wrong Node version - #5

Open
Diolor wants to merge 8 commits into
tcort:masterfrom
Diolor:fix-error
Open

Fix wrong Node version#5
Diolor wants to merge 8 commits into
tcort:masterfrom
Diolor:fix-error

Conversation

@Diolor

@Diolor Diolor commented Feb 4, 2026

Copy link
Copy Markdown

Fixes tcort/markdown-link-check#553

/usr/local/lib/node_modules/markdown-link-check/node_modules/markdown-link-extractor/index.js:3
const { marked } = require('marked');
                   ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/markdown-link-check/node_modules/marked/lib/marked.esm.js from /usr/local/lib/node_modules/markdown-link-check/node_modules/markdown-link-extractor/index.js not supported.
Instead change the require of marked.esm.js in /usr/local/lib/node_modules/markdown-link-check/node_modules/markdown-link-extractor/index.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/usr/local/lib/node_modules/markdown-link-check/node_modules/markdown-link-extractor/index.js:3:20) {
  code: 'ERR_REQUIRE_ESM'
}

Node.js v21.7.3

@Diolor Diolor mentioned this pull request Feb 4, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No links found (falsely), so action is passing

1 participant