chore(dependabot): ignore typescript majors until twoslash supports TS 7 - #34
Open
craigthackerx wants to merge 1 commit into
Open
chore(dependabot): ignore typescript majors until twoslash supports TS 7#34craigthackerx wants to merge 1 commit into
craigthackerx wants to merge 1 commit into
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
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.
craigthackerx
force-pushed
the
chore/ignore-typescript-major
branch
from
August 8, 2026 08:37
ef25152 to
a1424c1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to closing #33. TypeScript 7 breaks the build, so Dependabot should stop proposing it weekly.
What I tested
Installed
typescript@7.0.2locally and ran the full pipeline. Two distinct failures.Config — fixable.
tsc --noEmitfails before touching any source:Dropping
baseUrland keepingpathstype-checks clean under 7.0.2, and it still works under 5.8.3 —pathshas resolved relative to the tsconfig withoutbaseUrlsince TS 5.0. So that edit is forward-compatible and can land whenever we actually move. I have deliberately not included it here, since it is pointless churn while TS 7 is unusable for the reason below.Build — not fixable here. With the config fixed,
next builddies in the MDX loader:twoslashdrives TypeScript's JS compiler API, which the native TS 7 port does not expose. The chain isnextra→@shikijs/twoslash@3.23.0→twoslash@0.3.9, and 0.3.9 is the latest published version, declaring:TS 7 is excluded on purpose, and there is no release that supports it. Nothing to work around at our level.
What this changes
One
ignoreentry fortypescriptmajors, alongside the existingeslintone, each carrying the reason and the condition for removing it.Remove this entry once
twoslashwidens its peer range — and apply thebaseUrlremoval at the same time.On #32
@types/node26.1.2 was tested in the same run and is clean —tsc --noEmit,next build(42 pages, 36 indexed) andeslint(0 findings) all pass. It is deliberately not ignored, and is safe to merge.Caveat
GitHub Actions is still in major outage, so CI has not run on this. The dependabot.yml parses and both ecosystem entries resolve correctly, verified locally.