[GH-ISSUE #5489] [bug]: Missing type definitions in experimental sandbox (Monaco IntelliSense) #2108

Closed
opened 2026-03-16 23:13:15 +03:00 by kerem · 4 comments
Owner

Originally created by @ezequieltejada on GitHub (Oct 17, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5489

Originally assigned to: @jamesgeorge007 on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Desktop App

Browser

Other (specify in additional info)

Operating System

Windows

Bug Description

What happened?

When creating a post-request script, attempting to set an environment variable results in the following error:

Property 'set' does not exist on type 'typeof env'.

It still works, but it shows as an syntax error.

Steps to reproduce

  1. Create a post-request script in Hoppscotch.
  2. Try to use env.set('key', 'value') or similar to set an environment variable.
  3. Observe the error message above.

Additional context

This issue occurs specifically when trying to set env variables in post-request scripts.

Image

I've tried with "hopp.env" and I'm getting the same syntax error.

Deployment Type

Self-hosted (on-prem deployment)

Version

No response

Originally created by @ezequieltejada on GitHub (Oct 17, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5489 Originally assigned to: @jamesgeorge007 on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Desktop App ### Browser Other (specify in additional info) ### Operating System Windows ### Bug Description ## What happened? When creating a post-request script, attempting to set an environment variable results in the following error: ``` Property 'set' does not exist on type 'typeof env'. ``` It still works, but it shows as an syntax error. ## Steps to reproduce 1. Create a post-request script in Hoppscotch. 2. Try to use `env.set('key', 'value')` or similar to set an environment variable. 3. Observe the error message above. ## Additional context This issue occurs specifically when trying to set env variables in post-request scripts. <img width="568" height="150" alt="Image" src="https://github.com/user-attachments/assets/60e40109-1209-4722-bb54-bc7cfc3fa492" /> I've tried with "hopp.env" and I'm getting the same syntax error. ### Deployment Type Self-hosted (on-prem deployment) ### Version _No response_
kerem 2026-03-16 23:13:15 +03:00
Author
Owner

@jamesgeorge007 commented on GitHub (Oct 17, 2025):

Hi @ezequieltejada, this is a known issue related to https://github.com/hoppscotch/hoppscotch/issues/5475 that has been addressed in https://github.com/hoppscotch/hoppscotch/pull/5433 and is live in the latest release across all web platforms.

However, please keep in mind that the Desktop App update is still pending and will be included in an upcoming release.

Also, since you're working in the experimental scripting sandbox, the type errors you're seeing in the Monaco editor can be safely ignored, given the underlying functionality works as intended. We're aware of certain gaps in the hopp namespace regarding type definitions that power the Monaco editor's IntelliSense, and these will be addressed in the upcoming release.

<!-- gh-comment-id:3414277841 --> @jamesgeorge007 commented on GitHub (Oct 17, 2025): Hi @ezequieltejada, this is a known issue related to https://github.com/hoppscotch/hoppscotch/issues/5475 that has been addressed in https://github.com/hoppscotch/hoppscotch/pull/5433 and is live in the [latest release](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.9.2) across all web platforms. However, please keep in mind that the Desktop App update is still pending and will be included in an upcoming release. Also, since you're working in the experimental scripting sandbox, the type errors you're seeing in the Monaco editor can be safely ignored, given the underlying functionality works as intended. We're aware of certain gaps in the `hopp` namespace regarding type definitions that power the Monaco editor's IntelliSense, and these will be addressed in the upcoming release.
Author
Owner

@ezequieltejada commented on GitHub (Oct 17, 2025):

Hi @jamesgeorge007

First of all, thank you for taking a look at this issue.

Before creating it, I've checked the issue #5475 and I thought it didn't addressed the same problem I'm having. That's why I reported it.

I've followed your suggestion and ignored the syntax error and it still works, so we can safely close this issue.

Thanks again, James. 😊

<!-- gh-comment-id:3414879767 --> @ezequieltejada commented on GitHub (Oct 17, 2025): Hi @jamesgeorge007 First of all, thank you for taking a look at this issue. Before creating it, I've checked the issue #5475 and I thought it didn't addressed the same problem I'm having. That's why I reported it. I've followed your suggestion and ignored the syntax error and it still works, so we can safely close this issue. Thanks again, James. 😊
Author
Owner

@jamesgeorge007 commented on GitHub (Oct 31, 2025):

Hey @ezequieltejada, quick update: the Desktop App release is now live! We've also fixed the known Intellisense issues related to the hopp namespace script usage in the latest release.

<!-- gh-comment-id:3474162238 --> @jamesgeorge007 commented on GitHub (Oct 31, 2025): Hey @ezequieltejada, quick update: the Desktop App release is now live! We've also fixed the known Intellisense issues related to the `hopp` namespace script usage in the [latest release](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.10.0).
Author
Owner

@ezequieltejada commented on GitHub (Nov 6, 2025):

Hey James, thanks for the update! I'll test it.

<!-- gh-comment-id:3499241214 --> @ezequieltejada commented on GitHub (Nov 6, 2025): Hey James, thanks for the update! I'll test it.
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#2108
No description provided.