Skip to content

chore(deps): update typescript to v6 - #201

Merged
andre8244 merged 3 commits into
mainfrom
chore/typescript-6
Oct 7, 2026
Merged

andre8244 merged 3 commits into
mainfrom
chore/typescript-6

Conversation

@andre8244

@andre8244 andre8244 commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

TypeScript 7 can't 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 works with the current tooling.

  • replace the unused baseUrl, deprecated in TS 6, with an explicit rootDir, which TS 6 requires
  • set emitDeclarationOnly in tsconfig.app.json, which fixes the TS5096 error editors report on allowImportingTsExtensions
  • copy env.d.ts into the build container: TS 6 checks side-effect imports such as main.css by default

The emitted declarations are identical to TypeScript 5.9.

Supersedes #167

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
@andre8244
andre8244 requested a review from Tbaile October 6, 2026 14:06
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 Tbaile left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷

Weird that without the env.d.ts was still compiling fine all this time

@andre8244
andre8244 merged commit a01719d into main Oct 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants