From a1424c1e98a93bbdf2f1d8eaa3a8b2d184352e65 Mon Sep 17 00:00:00 2001 From: Craig Thacker Date: Thu, 6 Aug 2026 20:57:18 +0100 Subject: [PATCH] chore(dependabot): ignore typescript majors until twoslash supports TS 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TypeScript 7 breaks the build, verified locally against 7.0.2. Two problems. tsc fails on config first — TS 7 removed baseUrl (TS5102) — which is fixable, and dropping baseUrl while keeping paths type-checks clean on both 7.0.2 and 5.8.3, so that change is forward-compatible whenever we do move. The blocker is the build: TypeError: Cannot read properties of undefined (reading 'readFile') at createCacheableFSBackedSystem (twoslash/dist/core.mjs:445) from nextra/loader.cjs twoslash uses TypeScript's JS compiler API, which the native TS 7 port does not expose. It is upstream and not workaroundable here: nextra -> @shikijs/twoslash@3.23.0 -> twoslash@0.3.9, and 0.3.9 is latest with peerDependencies typescript ^5.5.0 || ^6.0.0. No published version supports 7. Dependabot PR #33 is closed. Remove this entry once twoslash widens its peer range, along with the baseUrl removal noted above. @types/node 26.1.2 (#32) was tested alongside and is unaffected — tsc, next build and eslint all pass, so it is not ignored here. --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9d314eb..fa11201 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -19,6 +19,12 @@ updates: # linting cannot run. Drop this once the plugin supports eslint 10. - dependency-name: eslint update-types: [version-update:semver-major] + # nextra -> @shikijs/twoslash -> twoslash calls TypeScript's JS compiler + # API, which the native TS 7 port does not expose, so the build dies in + # the MDX loader. twoslash@0.3.9 (latest) pins its peer to + # ^5.5.0 || ^6.0.0. Drop this once twoslash supports 7. + - dependency-name: typescript + update-types: [version-update:semver-major] open-pull-requests-limit: 5 labels: - dependencies