api-client/packages/hoppscotch-agent
Shreyas f97fecd4b7
fix(agent): vue-tsc and typescript compat (CI) (#5227)
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.
2025-07-09 16:42:09 +05:30
..
public feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
src feat: Agent registration UX flow updates (#4942) 2025-03-27 21:09:23 +05:30
src-tauri chore(agent): version bump (#5150) 2025-06-13 15:18:43 +05:30
.gitignore feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
index.html feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
package.json fix(agent): vue-tsc and typescript compat (CI) (#5227) 2025-07-09 16:42:09 +05:30
postcss.config.js feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
README.md feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
tailwind.config.js feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
tsconfig.json feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
tsconfig.node.json feat: hoppscotch agent and agent interceptor (#4396) 2024-10-03 20:26:30 +05:30
vite.config.ts feat(kernel): isolate type ser/de to platform (#4860) 2025-03-10 22:45:51 +05:30

Tauri + Vue + TypeScript

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's Take Over mode by following these steps:

  1. Run Extensions: Show Built-in Extensions from VS Code's command palette, look for TypeScript and JavaScript Language Features, then right click and select Disable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
  2. Reload the VS Code window by running Developer: Reload Window from the command palette.

You can learn more about Take Over mode here.