Repository navigation
chore(deps): update typescript to v6 - #201
Merged
Merged
Conversation
TypeScript 7 cannot be adopted yet: it ships no programmatic API (expected in 7.1), which vue-tsc and typescript-eslint depend on. The Storybook build also fails with it. TypeScript 6 is the last release with that API and is supported by the current tooling. Replace the unused baseUrl, deprecated in TypeScript 6, with an explicit rootDir, which TypeScript 6 requires for declaration output. Emitted declarations are identical to TypeScript 5.9. Assisted-by: Claude Code:Opus 5.5
allowImportingTsExtensions, inherited from @vue/tsconfig, requires noEmit or emitDeclarationOnly. The config disables noEmit and the build script passed emitDeclarationOnly only on the command line, so editors reading tsconfig.app.json reported TS5096. Emitted declarations are unchanged. Assisted-by: Claude Code:Opus 5.5
TypeScript 6 enables noUncheckedSideEffectImports by default, so the side-effect import of main.css needs the vite/client declarations referenced by env.d.ts. The container build did not copy that file, so type generation failed with TS2882. Assisted-by: Claude Code:Opus 5.5
Tbaile
approved these changes
Oct 7, 2026
Tbaile
left a comment
Collaborator
There was a problem hiding this comment.
🤷
Weird that without the env.d.ts was still compiling fine all this time
1 task
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.
TypeScript 7 can't be adopted yet: it ships no programmatic API (expected in 7.1), which
vue-tscandtypescript-eslintdepend on. The Storybook build also fails with it. TypeScript 6 is the last release with that API and works with the current tooling.baseUrl, deprecated in TS 6, with an explicitrootDir, which TS 6 requiresemitDeclarationOnlyintsconfig.app.json, which fixes the TS5096 error editors report onallowImportingTsExtensionsenv.d.tsinto the build container: TS 6 checks side-effect imports such asmain.cssby defaultThe emitted declarations are identical to TypeScript 5.9.
Supersedes #167