| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
PR Summary by Qodochore: bump TypeScript to 6.0.3 and adapt root typecheck config ⚙️ Configuration changes ✨ Enhancement 🕐 20-40 Minutes AI Description
|
Sorry, something went wrong.
Code Review by Qodo🐞 Bugs (4) 📘 Rule violations (0) 📜 Skill insights (0) 1. TS5 still installed 🐞 Bug ☼ Reliability ⭐ New Description Code Evidence Agent prompt 2. TS5-incompatible CJS tsconfig 🐞 Bug ⚙ Maintainability Description Code Evidence Agent prompt 3. Ambient stubs widen to any ✓ Resolved 🐞 Bug ≡ Correctness Description Code Evidence Agent prompt View more (2) 4. Mocha typings excluded 🐞 Bug ≡ Correctness Description Code Evidence Agent prompt 5. Unpinned Jest ambient types 🐞 Bug ☼ Reliability Description Code Evidence Agent prompt Previous review resultsReview updated until commit f3c3c17 Results up to commit 9aa0a55
Description Code Evidence Agent prompt 2. Ambient stubs widen to any 🐞 Bug ≡ Correctness Description Code Evidence Agent prompt 3. Mocha typings excluded 🐞 Bug ≡ Correctness Description Code Evidence Agent prompt View more (1) 4. Unpinned Jest ambient types 🐞 Bug ☼ Reliability Description Code Evidence Agent prompt Results up to commit 54da7a9
Description Code Evidence Agent prompt 2. Ambient stubs widen to any 🐞 Bug ≡ Correctness ⭐ New Description Code Evidence Agent prompt 3. Mocha typings excluded 🐞 Bug ≡ Correctness Description Code Evidence Agent prompt View more (1) 4. Unpinned Jest ambient types 🐞 Bug ☼ Reliability Description Code Evidence Agent prompt Results up to commit c3c82d7
Description Code Evidence Agent prompt 2. Unpinned Jest ambient types 🐞 Bug ☼ Reliability Description Code Evidence Agent prompt Results up to commit 6e18656
Description Code Evidence Agent prompt |
Sorry, something went wrong.
…o-6.0.3 # Conflicts: # pnpm-lock.yaml
|
Code review by qodo was updated up to the latest commit c3c82d7 |
Sorry, something went wrong.
…r TS6 TS6 rejects moduleResolution=node (node10) with TS5107. The shipped default compile tsconfigs (aspect env, typescript-compiler default, react env) are read by the now-bundled TS 6.0.3 when compiling user components, so switch them to the non-deprecated 'bundler' resolution.
|
Code review by qodo was updated up to the latest commit 54da7a9 |
Sorry, something went wrong.
Under TS6, the side-effect 'import "reset-css"' in scope.tsx and workspace.tsx fails with TS2882 (no resolvable types) when compiled by core-aspect-env in a capsule. The root ts-ambient.d.ts shim doesn't reach env builds, so co-locate the declaration with each component.
|
Code review by qodo was updated up to the latest commit 9aa0a55 |
Sorry, something went wrong.
…imports
Per review: 'declare module "x" {}' keeps reset-css / @mdx-js/loader
side-effect-only (import 'x' is valid, an accidental value import errors),
instead of the bare 'declare module "x";' which widens them to any.
| "ts-graphviz": "^2.1.6", | ||
| "type-coverage": "2.15.1", | ||
| "typescript": "5.9.2", | ||
| "typescript": "6.0.3", |
There was a problem hiding this comment.
1. Ts5 still installed 🐞 Bug ☼ Reliability
Even after bumping the workspace dependency policy to TypeScript 6.0.3, pnpm-lock.yaml still pins scopes/harmony/bit to typescript@5.9.2, so installs keep multiple TypeScript versions and that importer can still resolve/use TS5. This can reintroduce TS5-vs-TS6 behavior differences for any tooling executed in that workspace package (or anything resolving its local typescript).Agent Prompt
## Issue description The PR updates `workspace.jsonc` to TypeScript `6.0.3`, but `pnpm-lock.yaml` still records `typescript@5.9.2` as a direct dependency for the `scopes/harmony/bit` workspace importer. This leaves multiple TypeScript versions in the install and may cause some tooling to run under TS5. ## Issue Context The root importer is already on TS6, so this is a per-importer skew. ## Fix Focus Areas - pnpm-lock.yaml[2058-2063] - pnpm-lock.yaml[21753-21880] - workspace.jsonc[643-650] ## Suggested fix 1. Identify why the `scopes/harmony/bit` importer still requests TS `5.9.2` (component-level dependency policy / variant override / generated manifest input). 2. Update that source to request `typescript@6.0.3`. 3. Regenerate `pnpm-lock.yaml` (e.g., via the same `bit install` workflow used for this PR) and confirm `scopes/harmony/bit` now resolves TS6.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Sorry, something went wrong.
There was a problem hiding this comment.
Good catch — this is real. teambit.harmony/bit's typescript dep lives in the component model (set via a past bit deps set), not in workspace.jsonc — see the note on the variant's dependency-resolver policy: "Changes here won't affect the actual dependencies … To change a dependency from this list, run bit deps set teambit.harmony/bit <pkg@version>." So the workspace.jsonc bump can't move it, and the importer stays on 5.9.2.
Note the actual CI build already compiles under TS6 (it resolves the root-hoisted typescript@6.0.3; that's what surfaces the TS6 errors), so this is a manifest-consistency gap rather than the current build failure. The correct fix is bit deps set teambit.harmony/bit typescript@6.0.3 + bit install, which we're sequencing as part of the broader TS6 rollout (currently gated on the env-side TS6 migration). Leaving this thread open to track it.
Sorry, something went wrong.
|
Code review by qodo was updated up to the latest commit f3c3c17 |
Sorry, something went wrong.
Status: green except e2e_test and bit_pr — both blocked on env-side TS6 gaps, not on this PR's own codeWhat this PR doesBumps the workspace to TypeScript 6.0.3 (+ root tsconfig.json: ignoreDeprecations: "6.0", types: ["node", "jest"], and empty-module ambient stubs for the side-effect-only imports reset-css / @mdx-js/loader). Bumping the workspace typescript means the from-source bit binary now compiles components under TS6, which surfaces a chain of TS6-compat issues. The first is fixed here; the rest live in the envs. ❌ e2e_test — 20 of 40 containersTwo TS6 errors, in order of appearance:
❌ bit_pr — 1 of 54 tasksGeneratePreview for teambit.ui-foundation/ui/side-bar fails with dist/index.js: Unexpected token 'export'. Under TS6, v17/react-env compiles side-bar to an ESM dist/index.js that its own preview webpack/babel-loader then can't parse.
⚠️ The bump is also incomplete for the bit binary itselfpnpm-lock.yaml still resolves teambit.harmony/bit → typescript@5.9.2. That dep lives in the component model (set via a past bit deps set), so workspace.jsonc can't move it — see the note already in the scopes/harmony/bit variant. Until this is fixed, the shipped bvm binary would still bundle TS5, even though the from-source CI build uses TS6. Suggested path forwardThis PR is effectively gated on the env-side TS6 migration. The bit2-local changes here (bundler tsconfigs + ambient stubs) are complete and correct. To turn CI green, three things outside this PR are needed:
Recommendation: hold this PR until (2) and (3) are released, then re-run CI. Nothing further is fixable inside bit2 until then. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Bumps the repo's own typescript dev dependency from 5.9.2 to 6.0.3 in workspace.jsonc (both the dependency policy and the bvm-root pins), matching the TS6 core envs and typescript-compiler@3.0.0. pnpm-lock.yaml regenerated by bit install.
The root tsconfig.json (used by the tsc --noEmit lint check) needed three TS6 adaptations, kept intentionally minimal to preserve the existing resolution behavior:
npm run lint (tsc --noEmit + oxlint) passes clean; bit install compiles all 313 components.