Skip to content

chore(playground): Stop vizard apps picking up the monorepo's @types - #12302

Merged
ovr merged 1 commit into
masterfrom
fix/vizard-apps-implicit-types
Oct 16, 2026
Merged

ovr merged 1 commit into
masterfrom
fix/vizard-apps-implicit-types

Conversation

@ovr

@ovr ovr commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes the v1.8.8 release failure (job).

lerna 10.1.1 (#12300) pulled parse-url 9.2.0 into the root yarn.lock. It depends on @types/parse-path@7.1.0, a deprecated stub with no index.d.ts. The vizard apps' tsconfig.json sets no types, so tsc auto-includes every @types/* from ancestor node_modules, including the monorepo root. The build then fails:

error TS2688: Cannot find type definition file for 'parse-path'.

The playground build failed with it, and nx bailed on 27 dependent packages.

Fix: "types": [] in both vizard apps. vite/client is already referenced from src/vite-env.d.ts.

Verified locally: with the stub in the root node_modules/@types, the old tsconfig reproduces TS2688. With the fix, yarn build passes for both apps.

🤖 Generated with Claude Code

The v1.8.8 release failed in "Build other packages": lerna 10.1.1 (#12300)
pulled parse-url 9.2.0 into the root yarn.lock, which depends on the stub
@types/parse-path@7.1.0 (no index.d.ts). The vizard apps' tsconfig has no
`types`, so tsc auto-included every @types/* from ancestor node_modules,
including the root one, and failed with TS2688 for 'parse-path'.

`"types": []` limits the apps to their own references; vite/client is
already pulled in via src/vite-env.d.ts.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ovr
ovr requested a review from a team as a code owner October 16, 2026 18:47
@github-actions github-actions Bot added the client:playground Issues relating to the Developer Playground label Oct 16, 2026
@claude

claude Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @ovr's task in 1m 10s —— View job


LGTM: 0 high, 0 medium, 0 low.

Review details
  • Read diff and changed tsconfigs
  • Check other tsconfigs that might hit the same stub
  • Resolve stale review threads
  • Post review

Verification

  • No auto-loaded globals are lost. Neither app's src uses Node globals (process, Buffer, __dirname, NodeJS.*). @types/react and @types/react-dom resolve through explicit imports, which types doesn't affect. vite/client is pulled in by src/vite-env.d.ts:1.
  • tsconfig.node.json isn't type-checked by the build. The build script runs tsc && vite build without -b, so the referenced tsconfig.node.json isn't compiled. The root @types/parse-path stub can't reach the build through it.
  • No other tsconfig on this path has the same exposure:
    • vizard/tsconfig.json:25 sets typeRoots: ["./types.d.ts"], so nothing is auto-included.
    • cubejs-playground/tsconfig.json:9 sets types: ["vitest/globals"].
    • tsconfig.base.json:15 sets types: ["node"] for packages that inherit it.
  • The apps stay on TypeScript ^5.2.2. An explicit "types": [] matches TypeScript 6's new default, so a later TS bump won't change behaviour here.

Review threads

The listing returned 0 of my own threads, so there was nothing to resolve or re-affirm.

@ovr
ovr merged commit 32d623c into master Oct 16, 2026
17 checks passed
@ovr
ovr deleted the fix/vizard-apps-implicit-types branch October 16, 2026 18:56
ovr added a commit that referenced this pull request Oct 23, 2026
…12302)

Fixes the v1.8.8 release failure in "Build other packages".

lerna 10.1.1 (#12300) pulled parse-url 9.2.0 into the root yarn.lock, which
depends on the deprecated stub @types/parse-path@7.1.0 (no index.d.ts). The
vizard apps' tsconfig set no `types`, so tsc auto-included every @types/*
from ancestor node_modules, including the monorepo root, and failed with
TS2688 for 'parse-path'; nx then bailed on 27 dependent packages.

`"types": []` in both vizard apps limits them to their own references;
vite/client is already pulled in via src/vite-env.d.ts.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ovr added a commit that referenced this pull request Nov 9, 2026
…12302)

Fixes the v1.8.8 release failure in "Build other packages".

lerna 10.1.1 (#12300) pulled parse-url 9.2.0 into the root yarn.lock, which
depends on the deprecated stub @types/parse-path@7.1.0 (no index.d.ts). The
vizard apps' tsconfig set no `types`, so tsc auto-included every @types/*
from ancestor node_modules, including the monorepo root, and failed with
TS2688 for 'parse-path'; nx then bailed on 27 dependent packages.

`"types": []` in both vizard apps limits them to their own references;
vite/client is already pulled in via src/vite-env.d.ts.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit b28fcdc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client:playground Issues relating to the Developer Playground

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

⌂ Proxy