You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like something changed in main that’s breaking the markdown-it-highlightjs plugin when upgraded to it from the version it is currently using (11.5.1)
Specifically, tests pass before the upgrade but when running the tests after an upgrade, I’m seeing:
Error: Cannot find module '/var/home/aral/Projects/other/markdown-it-highlightjs/node_modules/highlight.js/lib/index.js'. Please verify that the package.json has a valid "main" entry
Since 11.5.1 →11.9.0 (version in main) is a semver minor update, I’d expect all tests to still pass.
The issue does not exist in the release version of 11.9.0, where all tests pass, so this is either a regression or a breaking change in main.
Actual behavior
Tests fail with error message mentioned above and with full stack trace as provided below.
Additional context
Full stack trace:
Error: Cannot find module '/var/home/aral/Projects/other/markdown-it-highlightjs/node_modules/highlight.js/lib/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:450:19)
at Module._findPath (node:internal/modules/cjs/loader:720:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1135:27)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/var/home/aral/Projects/other/markdown-it-highlightjs/dist/index.js:40:32)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/var/home/aral/Projects/other/markdown-it-highlightjs/index.js:1:18)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/var/home/aral/Projects/other/markdown-it-highlightjs/test/test.js:6:21)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at cjsLoader (node:internal/modules/esm/translators:359:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:308:7)
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:430:15)
at async formattedImport (/var/home/aral/Projects/other/markdown-it-highlightjs/node_modules/mocha/lib/nodejs/esm-utils.js:7:14)
at async exports.requireOrImport (/var/home/aral/Projects/other/markdown-it-highlightjs/node_modules/mocha/lib/nodejs/esm-utils.js:48:32)
at async exports.loadFilesAsync (/var/home/aral/Projects/other/markdown-it-highlightjs/node_modules/mocha/lib/nodejs/esm-utils.js:103:20)
at async singleRun (/var/home/aral/Projects/other/markdown-it-highlightjs/node_modules/mocha/lib/cli/run-helpers.js:125:3)
at async exports.handler (/var/home/aral/Projects/other/markdown-it-highlightjs/node_modules/mocha/lib/cli/run.js:374:5)
The text was updated successfully, but these errors were encountered:
aral
changed the title
Main branch has issues with markdown-it-highlightjs
Main branch has breaking changes when markdown-it-highlightjs is upgraded to it from 11.5.1
Mar 25, 2024
aral
changed the title
Main branch has breaking changes when markdown-it-highlightjs is upgraded to it from 11.5.1
Main branch exhibits breaking changes when markdown-it-highlightjs is upgraded to it from 11.5.1
Mar 25, 2024
Describe the issue/behavior that seems buggy
It looks like something changed in main that’s breaking the markdown-it-highlightjs plugin when upgraded to it from the version it is currently using (11.5.1)
Specifically, tests pass before the upgrade but when running the tests after an upgrade, I’m seeing:
(Full stack trace at end.)
Sample Code or Instructions to Reproduce
git clone https://github.com/valeriangalliat/markdown-it-highlightjs.git
cd markdown-it-highlightjs.git
npm i
npm run test
and note all tests passingnpm i
npm run test
Expected behavior
Since 11.5.1 →11.9.0 (version in main) is a semver minor update, I’d expect all tests to still pass.
The issue does not exist in the release version of 11.9.0, where all tests pass, so this is either a regression or a breaking change in main.
Actual behavior
Tests fail with error message mentioned above and with full stack trace as provided below.
Additional context
Full stack trace:
The text was updated successfully, but these errors were encountered: