[PR #5227] [MERGED] fix(agent): vue-tsc and typescript compat (CI) #5116

Closed
opened 2026-03-17 02:35:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5227
Author: @CuriousCorrelation
Created: 7/7/2025
Status: Merged
Merged: 7/9/2025
Merged by: @jamesgeorge007

Base: patchHead: fix-agent-vue-tsc-compat-error


📝 Commits (1)

  • 3001027 fix(agent): vue-tsc and typescript compat (CI)

📊 Changes

4 files changed (+7 additions, -2959 deletions)

View changed files

📝 packages/hoppscotch-agent/package.json (+2 -2)
packages/hoppscotch-agent/pnpm-lock.yaml (+0 -2952)
📝 packages/hoppscotch-desktop/package.json (+1 -1)
📝 pnpm-lock.yaml (+4 -4)

📄 Description

This updates vue-tsc to version 2.2.0 and removes caret prefix from TypeScript to resolve build compatibility issues that were preventing builds in agent's CI/CD pipeline.

The build process was failing with "Search string not found" errors when vue-tsc attempted to patch TypeScript's internal structure.

Initially thought to be related to FE-925, FE-924.

Closes FE-926

The previous config used TypeScript at ^5.8.3 with vue-tsc at ^2.1.6. The vue-tsc package contains hardcoded regex patterns for patching TypeScript's internals, and these patterns in version 2.1.6 don't match the structure in TypeScript 5.8.3.

Changes made

  • package.json (agent): vue-tsc to "2.2.0"
  • package.json (desktop): vue-tsc to "2.2.0" for consistency
  • both: removes caret to prevent automatic minor version updates that could reintroduce issues
  • removes an inert pnpn-lock.yaml file

Using exact version pinning prevents package managers from automatically updating to perhaps an incompatible versions during future installs.

Notes to reviewers

This change only affects the build process and development dependencies. Runtime behavior and functionality remain unchanged. Both the Hoppscotch Agent and Desktop app will continue to work exactly as before, but builds will now complete successfully.

Testing should verify that pnpm tauri build completes without vue-tsc errors in both agent and desktop and all existing features continue to function normally.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5227 **Author:** [@CuriousCorrelation](https://github.com/CuriousCorrelation) **Created:** 7/7/2025 **Status:** ✅ Merged **Merged:** 7/9/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix-agent-vue-tsc-compat-error` --- ### 📝 Commits (1) - [`3001027`](https://github.com/hoppscotch/hoppscotch/commit/30010276a24792bc729298b1f6602dbcffb34717) fix(agent): `vue-tsc` and `typescript` compat (CI) ### 📊 Changes **4 files changed** (+7 additions, -2959 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-agent/package.json` (+2 -2) ➖ `packages/hoppscotch-agent/pnpm-lock.yaml` (+0 -2952) 📝 `packages/hoppscotch-desktop/package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+4 -4) </details> ### 📄 Description This updates `vue-tsc` to version `2.2.0` and removes caret prefix from TypeScript to resolve build compatibility issues that were preventing builds in `agent`'s CI/CD pipeline. The build process was failing with "Search string not found" errors when vue-tsc attempted to patch TypeScript's internal structure. Initially thought to be related to FE-925, FE-924. Closes FE-926 The previous config used `TypeScript` at `^5.8.3` with `vue-tsc` at `^2.1.6`. The `vue-tsc` package contains hardcoded regex patterns for patching TypeScript's internals, and these patterns in version 2.1.6 don't match the structure in TypeScript 5.8.3. ### Changes made - package.json (agent): `vue-tsc` to "2.2.0" - package.json (desktop): `vue-tsc` to "2.2.0" for consistency - both: removes caret to prevent automatic minor version updates that could reintroduce issues - removes an inert `pnpn-lock.yaml` file Using exact version pinning prevents package managers from automatically updating to perhaps an incompatible versions during future installs. ### Notes to reviewers This change only affects the build process and development dependencies. Runtime behavior and functionality remain unchanged. Both the Hoppscotch Agent and Desktop app will continue to work exactly as before, but builds will now complete successfully. Testing should verify that `pnpm tauri build` completes without vue-tsc errors in both agent and desktop and all existing features continue to function normally. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:35:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5116
No description provided.