Skip to content

feat(rehype): support lazy load languages #469

feat(rehype): support lazy load languages

feat(rehype): support lazy load languages #469

Triggered via pull request September 26, 2024 02:56
Status Failure
Total duration 3m 32s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
packages/rehype/test/core.test.ts > run with lazy: packages/core/src/constructors/internal-sync.ts#L50
ShikiError: Language `js` not found, you may need to load it first ❯ Object.getLanguage packages/core/src/constructors/internal-sync.ts:50:13 ❯ Module.codeToTokensBase packages/core/src/highlight/code-to-tokens-base.ts:47:29 ❯ Module.codeToTokens packages/core/src/highlight/code-to-tokens.ts:66:14 ❯ Module.codeToHast packages/core/src/highlight/code-to-hast.ts:44:7 ❯ Object.codeToHast packages/core/src/constructors/highlighter.ts:26:36 ❯ highlight packages/rehype/src/core.ts:74:36 ❯ processNode packages/rehype/src/core.ts:133:26 ❯ packages/rehype/src/core.ts:159:29 ❯ packages/rehype/src/core.ts:159:15
test (lts/*, macos-latest)
Process completed with exit code 1.
packages/rehype/test/core.test.ts > run with lazy: packages/core/src/constructors/internal-sync.ts#L50
ShikiError: Language `js` not found, you may need to load it first ❯ Object.getLanguage packages/core/src/constructors/internal-sync.ts:50:13 ❯ Module.codeToTokensBase packages/core/src/highlight/code-to-tokens-base.ts:47:29 ❯ Module.codeToTokens packages/core/src/highlight/code-to-tokens.ts:66:14 ❯ Module.codeToHast packages/core/src/highlight/code-to-hast.ts:44:7 ❯ Object.codeToHast packages/core/src/constructors/highlighter.ts:26:36 ❯ highlight packages/rehype/src/core.ts:74:36 ❯ processNode packages/rehype/src/core.ts:133:26 ❯ packages/rehype/src/core.ts:159:29 ❯ packages/rehype/src/core.ts:159:15
test (lts/*, ubuntu-latest)
Process completed with exit code 1.
packages/rehype/test/core.test.ts > run with lazy: packages/core/src/constructors/internal-sync.ts#L50
ShikiError: Language `js` not found, you may need to load it first ❯ Object.getLanguage packages/core/src/constructors/internal-sync.ts:50:13 ❯ Module.codeToTokensBase packages/core/src/highlight/code-to-tokens-base.ts:47:29 ❯ Module.codeToTokens packages/core/src/highlight/code-to-tokens.ts:66:14 ❯ Module.codeToHast packages/core/src/highlight/code-to-hast.ts:44:7 ❯ Object.codeToHast packages/core/src/constructors/highlighter.ts:26:36 ❯ highlight packages/rehype/src/core.ts:74:36 ❯ processNode packages/rehype/src/core.ts:133:26 ❯ packages/rehype/src/core.ts:159:29 ❯ packages/rehype/src/core.ts:159:15
test (18.x, ubuntu-latest)
Process completed with exit code 1.
packages/rehype/test/core.test.ts > run with lazy: packages/core/src/constructors/internal-sync.ts#L50
ShikiError: Language `js` not found, you may need to load it first ❯ Object.getLanguage packages/core/src/constructors/internal-sync.ts:50:13 ❯ Module.codeToTokensBase packages/core/src/highlight/code-to-tokens-base.ts:47:29 ❯ Module.codeToTokens packages/core/src/highlight/code-to-tokens.ts:66:14 ❯ Module.codeToHast packages/core/src/highlight/code-to-hast.ts:44:7 ❯ Object.codeToHast packages/core/src/constructors/highlighter.ts:26:36 ❯ highlight packages/rehype/src/core.ts:74:36 ❯ processNode packages/rehype/src/core.ts:133:26 ❯ packages/rehype/src/core.ts:159:29 ❯ packages/rehype/src/core.ts:159:15
test (lts/*, windows-latest)
Process completed with exit code 1.
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
typecheck
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/