Can not run the bun run dev correctly
Hi there,
I found the error message with "script "build" exited with code 1" when I executing the script file start.sh, and the console shows the server is running on the "http://localhost:1420", but the reality is the server is not running, when I use netstat command to check the port wether is listening, I got the answer: nothing listening on this port, so the server is not running and here are the exception stacks:
[ OK ] bun is installed (1.3.2) [ OK ] uv is installed (uv 0.8.22 (ade2bdbd2 2025-09-23)) [INFO] Sync Python dependencies (uv sync)...
Starting environment preparation...
Project root confirmed. Preparing environments... Setting up main Python environment... .venv already exists, skipping venv creation. Running: uv sync --group dev Resolved 190 packages in 3ms Audited 186 packages in 20ms Main environment setup complete.
Setting up third-party environments...
Setting up ai-hedge-fund environment...
~/develop/workspace/cyberease/harrison/valuecell/python/third_party/ai-hedge-fund ~/develop/workspace/cyberease/harrison/valuecell/python
.venv already exists, skipping venv creation.
Running: uv sync
warning: The requires-python specifier (~=3.12) in ai-hedge-fund uses the tilde specifier (~=) without a patch version. This will be interpreted as >=3.12, <4. Did you mean ~=3.12.0 to constrain the version as >=3.12.0, <3.13? We recommend only using the tilde specifier with a patch version to avoid ambiguity.
Resolved 237 packages in 2ms
Audited 234 packages in 10ms
~/develop/workspace/cyberease/harrison/valuecell/python
ai-hedge-fund environment setup complete.
Setting up TradingAgents environment...
~/develop/workspace/cyberease/harrison/valuecell/python/third_party/TradingAgents ~/develop/workspace/cyberease/harrison/valuecell/python .venv already exists, skipping venv creation. Running: uv sync Resolved 322 packages in 2ms Audited 315 packages in 15ms ~/develop/workspace/cyberease/harrison/valuecell/python TradingAgents environment setup complete.
All environments are set up.
2025-10-29 00:55:57,310 - main - INFO - ValueCell Database Initialization 2025-10-29 00:55:57,310 - main - INFO - ================================================== 2025-10-29 00:55:57,313 - main - INFO - Starting database initialization... 2025-10-29 00:55:57,314 - main - INFO - All tables exist: ['agents', 'assets', 'conversation_items', 'conversations', 'user_profiles', 'watchlist_items', 'watchlists'] 2025-10-29 00:55:57,314 - main - INFO - Database already exists and is properly initialized 2025-10-29 00:55:57,314 - main - INFO - Database initialization completed successfully! [ OK ] Python dependencies synced [INFO] Install frontend dependencies (bun install)... bun install v1.3.2-canary.34 (6580b563)
Checked 697 installs across 741 packages (no changes) [87.00ms] [ OK ] Frontend dependencies installed [INFO] Starting frontend dev server (bun run dev)... [INFO] Frontend PID: 70901 $ react-router dev /Users/harrison/develop/workspace/cyberease/harrison/valuecell/frontend/node_modules/@react-router/dev/dist/cli/index.js:866 result[param] ||= isRequired; ^^^
SyntaxError: Unexpected token '||='
at wrapSafe (internal/modules/cjs/loader.js:984:16)
at Module._compile (internal/modules/cjs/loader.js:1032:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.
the same to you
Thanks for reporting this. To help diagnose the issue, could you please provide your node.js version? I suspect this might be related to your environment, and upgrading your Node version could potentially resolve it.
yeah sure, I used the nodejs V14.17.0 before and use nvm switch the nodejs version to V22.14.0 and it works, Thanks~!