Gideon icon indicating copy to clipboard operation
Gideon copied to clipboard

Fresh Windows 11 Installation fails with Error when following Installation Guide provided

Open JustCodeIt4Head opened this issue 7 months ago • 1 comments

Thank you for helping improve Gideon! Please use this template to report bugs. Provide as much detail as possible to help us reproduce and fix the issue quickly. If this is a feature request or general question, use the appropriate Discussion category instead.

Bug Report

Title

recon.js Error in Fresh Installation on Windows

Description

When Installing Gideon and all Prerequisites as mentioned in the Readme on Github, Bun throws an Error that the Export "CVSSResult" was not found in recon.js when executing loadAndEvaluateModule:

$ bun run src/index.tsx 1 | }) 2 | { ^ SyntaxError: export 'CVSSResult' not found in './recon.js' at loadAndEvaluateModule (2:1)

Steps to Reproduce

Follow the Intall Instructions as described:

  1. Install Bun via powershell -c "irm bun.sh/install.ps1|iex"
  2. Clone GIT Rep git clone https://github.com/Cogensec/Gideon.git
  3. Install bun depencies bun install
  4. Rename env.example to env
  5. Add LLM Key (in my case OpenRouter)
  6. Execute InteractiveShell in Powershell via bun start
  7. Get Error

Expected Behavior

Interactive Shell should execute

Actual Behavior

Application throws Error

Environment

  • Operating System: Windows 11
  • Bun Version: 1.3.13 Install via PowerShell
  • Node.js Version (if applicable): 24.15.0
  • Gideon Version/Commit: Git clone from 29th April and Manual Release Download 1.2.0
  • **Hardware (System 1): AMD Ryzen 5 5500, NVIDIA RTX 4060
  • **Hardware (System 2): AMD Ryzen 9 9750x3D. AMD 7900XTX OC
  • Relevant API Services: OpenRouter, Locally running OLLAMA
  • Other Dependencies: -

Logs/Screenshots

[Include any console logs, error traces, or screenshots. Use code blocks for logs:]

[Paste logs here] Error.txt in the root folder: `    This is not the tsc command you are looking for   

To get access to the TypeScript compiler, tsc, from the command line either:

  • Use npm install typescript to first add TypeScript to your project before using npx
  • Use yarn to avoid accidentally running code from un-installed packages `

Additional Context

Followed Install Guide for Windows on a Fresh Installation. Verified functionallity of Node.js and Bun by query Version via PowerShell. Also tried executing Steps via MINGW64 Bash Console, same Issues. Bun Install shows no Errors and 634 successful installs on 553 packages EDIT1: Added NVD API Key to avoid Rate Limit Issue with NVD. Error persists.

Severity

  • [] Critical: Crashes the tool or prevents core functionality.
  • [ ] High: Major feature broken, but workaround exists.
  • [X] Medium: Minor issue affecting usability.
  • [ ] Low: Cosmetic or rare edge case.

EDIT2: Found Workaround: Deleting "CVSSInput and CVSSResult" from /src/gideon/index.ts Line 61 and 62 fixes the no Start. However its unclear what the Side Effects will be

Once submitted, we'll triage and respond as soon as possible. Thanks for your contribution! 🚀

JustCodeIt4Head avatar Apr 29 '26 13:04 JustCodeIt4Head

Thanks for the detailed report — your workaround pointed straight at the root cause.

CVSSInput and CVSSResult are declared as export interface in src/gideon/recon.ts (type-only), but src/gideon/index.ts was re-exporting them inside a value export { ... } from './recon.js' block. At runtime the compiled recon.js has no such exports, so bun's ESM loader throws export 'CVSSResult' not found.

It's not Windows-specific — bun 1.3.x just enforces stricter ESM resolution and surfaces what was already a latent bug. Older bun/TS toolchains erased the unused type re-exports silently.

The fix is a one-line move into an export type { ... } block, preserving the public type surface so downstream consumers aren't affected (unlike deleting the lines outright). PR: #19.

requie avatar May 11 '26 19:05 requie