Skip to content

[Bug]: Can't make build and make frontend:✘ [ERROR] Could not resolve OpenHands/frontend/vite.config.ts" , failed to load config from frontend/vite.config.ts #9702

Open
@free-marine

Description

@free-marine

Is there an existing issue for the same bug? (If one exists, thumbs up or comment on the issue instead).

  • I have checked the existing issues.

Describe the bug and reproduction steps

When "make build":
Building project...
Checking dependencies...
Checking system...
Linux detected.
Checking Python installation...
Python 3.12.2 is already installed.
Checking npm installation...
npm 10.9.2 is already installed.
Checking Node.js installation...
Node.js 22.17.0 is already installed.
Checking Docker installation...
Docker version 20.10.14, build v20.10.14 is already installed.
Checking Poetry installation...
Poetry (version 1.8.5) is already installed.
Checking tmux installation...
tmux 3.0a is already installed.
Dependencies checked successfully.
Installing Python dependencies...
Defaulting TZ (timezone) to UTC
Using virtualenv: /root/.cache/pypoetry/virtualenvs/openhands-ai-R-TlZJnH-py3.12
Installing dependencies from lock file
The lock file might not be compatible with the current version of Poetry.
Upgrade Poetry to ensure the lock file is read properly or, alternatively, regenerate the lock file with the poetry lock command.

No dependencies to install or update

Installing the current project: openhands-ai (0.48.0)Preparing build environment with build-system requirements poetry-core
Running build_vscode.py directly for testing VS Code extension packaging...
--- Building VS Code extension in /fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/openhands/integrations/vscode ---
--- Running npm install for VS Code extension ---

up to date, audited 608 packages in 2s

207 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
--- Packaging VS Code extension (openhands-vscode-0.0.1.vsix) ---

[email protected] package-vsix
npm run compile && npx vsce package --no-dependencies

[email protected] compile
tsc -p ./

Executing prepublish script 'npm run vscode:prepublish'...

[email protected] vscode:prepublish
npm run compile

[email protected] compile
tsc -p ./

INFO Files included in the VSIX:
openhands-vscode-0.0.1.vsix
├─ [Content_Types].xml
├─ extension.vsixmanifest
└─ extension/
├─ .eslintignore [0.04 KB]
├─ DEVELOPMENT.md [2.89 KB]
├─ LICENSE.txt [1.07 KB]
├─ package.json [3.19 KB]
├─ readme.md
└─ out/
├─ extension.js [14.03 KB]
├─ extension.js.map [7.33 KB]
└─ test/
├─ runTest.js [2.24 KB]
├─ runTest.js.map [0.63 KB]
└─ suite/
├─ extension.test.js [29.41 KB]
├─ extension.test.js.map [19.33 KB]
├─ index.js [2.81 KB]
└─ index.js.map [1.26 KB]

DONE Packaged: /fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/openhands/integrations/vscode/openhands-vscode-0.0.1.vsix (15 files, 22.79 KB)
WARNING The latest version of @vscode/vsce is 3.6.0 and you have 3.5.0.
Update it now: npm install -g @vscode/vsce
--- VS Code extension built successfully: /fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/openhands/integrations/vscode/openhands-vscode-0.0.1.vsix ---
Direct execution of build_vscode.py finished.
Installing the current project: openhands-ai (0.48.0)
Setup already done. Skipping playwright installation.
Python dependencies installed successfully.
Setting up frontend environment...
Detect Node.js version...
Current Node.js version is 22.17.0, corepack is supported.
Installing frontend dependencies with npm...

[email protected] prepare
cd .. && husky frontend/.husky

up to date, audited 1213 packages in 3s

341 packages are looking for funding
run npm fund for details

3 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.
Frontend dependencies installed successfully.
Installing pre-commit hooks...
pre-commit installed at .git/hooks/pre-commit
Pre-commit hooks installed successfully.
Building frontend...

[email protected] prepare
cd .. && husky frontend/.husky

[email protected] build
npm run make-i18n && react-router build

[email protected] make-i18n
node scripts/make-i18n-translations.cjs

✘ [ERROR] Could not resolve "/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/vite.config.ts"

failed to load config from /fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/vite.config.ts
Error: Build failed with 1 error:
error: Could not resolve "/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/vite.config.ts"
at failureErrorWithLog (/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:1465:15)
at /fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:924:25
at runOnEndCallbacks (/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:1305:45)
at buildResponseToResult (/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:922:7)
at /fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:949:16
at responseCallbacks. (/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:601:9)
at handleIncomingPacket (/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:656:12)
at Socket.readFromStdout (/fs-computility/llm_code_collab/liujiaheng/wenyongqian/OpenHands/frontend/node_modules/esbuild/lib/main.js:579:7)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:561:12) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
make[1]: *** [Makefile:246: build-frontend] Error 1
make: *** [Makefile:31: build] Error 2
But the vite.config.ts exists at the correct path in the openhands folder.

OpenHands Installation

Development workflow

OpenHands Version

main

Model Name

No response

Operating System

Linux

Logs, Errors, Screenshots, and Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions