Skip to content

Markdownlint checking fails with upgrade to 0.37.x #5767

@chalin

Description

@chalin

Upgrading markdownlint to 0.37.0 causes the following error:

$ npm run check:markdown
...

(node:7278) ExperimentalWarning: CommonJS module /Users/chalin/git/lf/open-telemetry/opentelemetry.io/gulp-src/lint-md.js is loading ES Module /Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/markdownlint/lib/exports.mjs using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[18:43:38] Using gulpfile ~/git/lf/open-telemetry/opentelemetry.io/gulpfile.js
[18:43:38] Starting 'lint-md'...
[18:43:38] 'lint-md' errored after 25 ms
[18:43:38] TypeError: markdownlint is not a function
    at Transform.markdownLintFile [as _transform] (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/gulp-src/lint-md.js:45:3)
    at Transform._read (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:166:10)
    at Transform._write (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:155:83)
    at doWrite (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:390:139)
    at writeOrBuffer (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:381:5)
    at Writable.write (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:302:11)
    at Transform.ondata (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:629:20)
    at Transform.emit (node:events:524:28)
    at Transform.emit (node:domain:552:15)
    at addChunk (/Users/chalin/git/lf/open-telemetry/opentelemetry.io/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:279:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    CI/infraCI & infrastructuredependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions